mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
git/commit: preserve merge-parents on failed commit
This commit is contained in:
parent
f3f659b54b
commit
dcff4acbb6
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,6 @@ fn commit{
|
|||
if(! ~ $#parents 0)
|
||||
pflags='-p'^$parents
|
||||
hash=`{git/save -n $"name -e $"email -m $"msg $pflags $files || die $status}
|
||||
rm -f .git/merge-parents
|
||||
}
|
||||
|
||||
fn update{
|
||||
|
@ -86,6 +85,7 @@ fn update{
|
|||
# Paranoia: let's not mangle the repo.
|
||||
if(~ $#hash 0)
|
||||
die 'botched commit'
|
||||
rm -f .git/merge-parents
|
||||
echo $branch: $hash
|
||||
echo $hash > $refpath
|
||||
for(f in $files){
|
||||
|
|
Loading…
Reference in a new issue