summaryrefslogtreecommitdiffstats
path: root/tools/post-receive.hook
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2013-12-11 10:46:26 -0800
committerJeremy Kerr <jk@ozlabs.org>2014-01-29 17:54:25 +0800
commit2b8be9316ca488c8ce913d47dd6f0ad04e7544e8 (patch)
treec1d7651fa553b9fe3134e29e31af865fb91d48f9 /tools/post-receive.hook
parent5ccc2d9900f691ac6e3000836d052f60e0d1e726 (diff)
downloadpatchwork-2b8be9316ca488c8ce913d47dd6f0ad04e7544e8.tar.bz2
patchwork-2b8be9316ca488c8ce913d47dd6f0ad04e7544e8.tar.xz
tools/post-receive.hook: don't update the previously pushed commit
Previously, the post-receive hook would always examine one commit that had been previously pushed, (when the purpose of the hook is only to example newly-pushed commits). We fix this by simply dropping the '^' in the commit-range specification. Signed-off-by: Carl Worth <cworth@cworth.org> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'tools/post-receive.hook')
-rwxr-xr-xtools/post-receive.hook2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/post-receive.hook b/tools/post-receive.hook
index ee3345f..b2b89a2 100755
--- a/tools/post-receive.hook
+++ b/tools/post-receive.hook
@@ -39,7 +39,7 @@ set_patch_state()
update_patches()
{
local cnt; cnt=0
- for rev in $(git rev-list --no-merges --reverse ${1}^..${2}); do
+ for rev in $(git rev-list --no-merges --reverse ${1}..${2}); do
if [ "$do_exit" = 1 ]; then
echo "I: exiting..." >&2
break