]> arthur.barton.de Git - bup.git/blobdiff - format-subst.pl
Use the author date, not committer date for the bup save date.
[bup.git] / format-subst.pl
index e04e1238965d67c98b901d4f6de8eea3018866f0..e91c3b8ad7f8cf23c5ca660ba1ca13db2e3ce3b2 100755 (executable)
@@ -12,14 +12,14 @@ while (<>) {
     s{
        \$Format:\%d\$
     }{
-       my $tag = fix(`git describe --match="bup-*"`);
-       "(tag: $tag)"
+       my $tag = fix(`git describe --match="[0-9]*"`);
+       "(tag: bup-$tag)"
     }ex;
     
     s{ 
        \$Format:([^\$].*)\$
     }{
-       fix(`git log -1 --format="$1"`)
+       fix(`git log -1 --pretty=format:"$1"`)
     }ex;
     print;
 }