summaryrefslogtreecommitdiff
path: root/templates/hooks--update
diff options
context:
space:
mode:
Diffstat (limited to 'templates/hooks--update')
-rw-r--r--templates/hooks--update8
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/hooks--update b/templates/hooks--update
index 0726975..3f38b82 100644
--- a/templates/hooks--update
+++ b/templates/hooks--update
@@ -16,10 +16,14 @@ then
git-rev-list --pretty "$3"
else
$base=$(git-merge-base "$2" "$3")
- if [ $base == "$2" ]; then
+ case "$base" in
+ "$2")
echo "New commits:"
- else
+ ;;
+ *)
echo "Rebased ref, commits from common ancestor:"
+ ;;
+ esac
fi
git-rev-list --pretty "$3" "^$base"
fi |