* post-receive: Fix $(( bug. Note that the user name and address are
incorrect if the last commit was on a branch.
+2011-02-18 Teodor Zlatanov <tzz@lifelogs.com>
+
+ * post-receive: Fix $(( bug. Note that the user name and address are
+ incorrect if the last commit was on a branch.
+
2010-11-22 Julien Danjou <julien@danjou.info>
* post-receive: Use commiter name and email address.
2010-11-22 Julien Danjou <julien@danjou.info>
* post-receive: Use commiter name and email address.
# modified: 2010-09-01 and on by tzz@lifelogs.com
# Use the email address of the author of the last commit.
# modified: 2010-09-01 and on by tzz@lifelogs.com
# Use the email address of the author of the last commit.
+# This fails if the commit is on a branch.
export USER_EMAIL=$(git log -1 --format=format:%ce HEAD)
export USER_NAME=$(git log -1 --format=format:%cn HEAD)
export USER_EMAIL=$(git log -1 --format=format:%ce HEAD)
export USER_NAME=$(git log -1 --format=format:%cn HEAD)
# that we can build from the parameters
describe=$(git describe $rev 2>/dev/null)
if [ -z "$describe" ]; then
# that we can build from the parameters
describe=$(git describe $rev 2>/dev/null)
if [ -z "$describe" ]; then
- describe=$((git log --format="%s" $oldrev...$newrev | perl -e'@p = <>; chomp @p; print "=", scalar @p, "= ", join(" ; ", @p)') 2>/dev/null)
+ describe=$( (git log --format="%s" $oldrev...$newrev | perl -e'@p = <>; chomp @p; print "=", scalar @p, "= ", join(" ; ", @p)') 2>/dev/null)
fi
if [ -z "$describe" ]; then
fi
if [ -z "$describe" ]; then