Next problem: cg-commit
Unfortunately, cg-commit seems to return wrong exit status, returning 1 on success. Eg:
$ cg-commit arch/arm/mach-ixp2000/pci.c include/asm-arm/arch-ixp2000/platform.h Enter commit message, terminated by ctrl-D on a separate line: blah blah blah Committed as fafb525292acc9c0818b91b1d8e58cf770616542. $ echo $? 1
It appears that [ "$merging" ] towards the end of cg-commit is the cause of this odd behaviour. Force zero exit status, since we successfully completed.
Signed-off-by Russell King <[email protected]>
cg-commit renamed from cg-commit.old +1 -0
@@ -114,6 +114,7 @@ echo "Committed as $newhead." echo $newhead >.git/HEAD [ "$merging" ] && rm .git/merging .git/merging-sym .git/merge-base + exit 0 else die "error during commit (oldhead $oldhead, treeid $treeid)" fi
Signature · 1 line
Russell King
Dear diary, on Fri, Apr 29, 2005 at 10:51:18PM CEST, I got a letter where Russell King <[email protected]> told me that...
Quoted 12 lines
Unfortunately, cg-commit seems to return wrong exit status, returning 1 on success. Eg:
$ cg-commit arch/arm/mach-ixp2000/pci.c include/asm-arm/arch-ixp2000/platform.h Enter commit message, terminated by ctrl-D on a separate line: blah blah blah Committed as fafb525292acc9c0818b91b1d8e58cf770616542. $ echo $? 1
Quoted 3 lines
It appears that [ "$merging" ] towards the end of cg-commit is the cause of this odd behaviour. Force zero exit status, since we successfully completed.
Nice find, thanks. I added it to few other files too.
Signature · 3 lines
Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor