aboutsummaryrefslogtreecommitdiffstats
path: root/git-repository--after-tarball
diff options
context:
space:
mode:
Diffstat (limited to 'git-repository--after-tarball')
-rwxr-xr-xgit-repository--after-tarball9
1 files changed, 8 insertions, 1 deletions
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