[dune-common] 01/02: get-orig-source: Use commit date instead of current date.

Ansgar Burchardt ansgar at moszumanska.debian.org
Fri Jun 19 21:26:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

ansgar pushed a commit to annotated tag debian/2.4.20150617g6f17141-1
in repository dune-common.

commit 140d1f38aa3b19acc51479367f033632276e33cb
Author: Ansgar Burchardt <ansgar at debian.org>
Date:   Fri Jun 19 23:02:07 2015 +0200

    get-orig-source: Use commit date instead of current date.
---
 debian/get-orig-source | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/get-orig-source b/debian/get-orig-source
index 161201c..88f747b 100755
--- a/debian/get-orig-source
+++ b/debian/get-orig-source
@@ -100,7 +100,9 @@ export GIT_DIR
 
 if [[ $snapshot ]]; then
   rev="$(git rev-parse --short ${branch})"
-  date="$(date +%Y%m%d)"
+  date=$(git log -1 --pretty="format:%ci" ${branch})
+  date=${date%% *}
+  date=${date//-/}
   version="${version}${date}g${rev}"
 fi
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/dune-common.git



More information about the debian-science-commits mailing list