aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2009-01-29 20:17:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2009-01-29 20:17:06 +0000
commit065d2cd2b65f5c195cdbbf902586ca6feea01394 (patch)
treec2c02867f248a04bab66916c337f63c0e61a2958
parent2316e371f08851d4e5e2dd828e7c54b500ad4d53 (diff)
downloadrpm-setup-065d2cd2b65f5c195cdbbf902586ca6feea01394.tar
rpm-setup-065d2cd2b65f5c195cdbbf902586ca6feea01394.tar.gz
rpm-setup-065d2cd2b65f5c195cdbbf902586ca6feea01394.tar.bz2
rpm-setup-065d2cd2b65f5c195cdbbf902586ca6feea01394.tar.xz
rpm-setup-065d2cd2b65f5c195cdbbf902586ca6feea01394.zip
- git-repository--after-tarball:
o commit the tarball with user "unknown" o commit the tarball using the tarball's modification time
-rw-r--r--NEWS4
-rwxr-xr-xgit-repository--after-tarball9
2 files changed, 12 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index fbce96c..e32af7d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+- git-repository--after-tarball:
+ o commit the tarball with user "unknown"
+ o commit the tarball using the tarball's modification time
+
Version 1.90 - 29 January 2009, by Pixel
- call patch with -U (aka --unified-reject-files)
diff --git a/git-repository--after-tarball b/git-repository--after-tarball
index 5fda909..bed3d04 100755
--- a/git-repository--after-tarball
+++ b/git-repository--after-tarball
@@ -47,6 +47,12 @@ our_git_clone() {
fi
}
+set_GIT_AUTHOR_DATE() {
+ # taking date of first tarball, sorry for the other tarballs ;)
+ tarball=$1
+ export GIT_AUTHOR_DATE=`stat -c '%y' "$RPM_SOURCE_DIR/$tarball"`
+}
+
if [ ! -e .git ]; then
if [ -n "$GIT_URL" ]; then
our_git_clone $GIT_URL
@@ -57,7 +63,8 @@ if [ ! -e .git ]; then
fi
fi
git add .
-git commit -q -a -m "imported $tarballs"
+set_GIT_AUTHOR_DATE $tarballs
+git commit -q -a --author="unknown <>" -m "imported $tarballs"
git branch -f vanilla
git branch -f patches-applied
git checkout patches-applied