File tree 2 files changed +14
-4
lines changed
2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -309,10 +309,12 @@ class GitTemporaryHead(object):
309
309
310
310
"""
311
311
312
- def __enter__ (self , git , message ):
312
+ def __init__ (self , git , message ):
313
313
self .git = git
314
314
self .message = message
315
- self .head_name = git .get_head_refname ()
315
+
316
+ def __enter__ (self ):
317
+ self .head_name = self .git .get_head_refname ()
316
318
return self
317
319
318
320
def __exit__ (self , exc_type , exc_val , exc_tb ):
Original file line number Diff line number Diff line change @@ -23,7 +23,11 @@ git checkout c
23
23
" $GIT_IMERGE " init --name=c-d d
24
24
" $GIT_IMERGE " list
25
25
" $GIT_IMERGE " diagram --commits --frontier --html=imerge0.html
26
- " $GIT_IMERGE " autofill || true
26
+ " $GIT_IMERGE " autofill 2>&1 | tee autofill.out
27
+ if grep -q Traceback autofill.out
28
+ then
29
+ exit 1
30
+ fi
27
31
" $GIT_IMERGE " diagram --commits --frontier --html=imerge1.html
28
32
" $GIT_IMERGE " continue --edit
29
33
echo ' cd version' > conflict.txt
@@ -36,7 +40,11 @@ GIT_EDITOR=cat "$GIT_IMERGE" simplify --goal=merge --branch=c-d-merge
36
40
" $GIT_IMERGE " remove
37
41
38
42
git checkout c
39
- " $GIT_IMERGE " start --goal=full --first-parent --name=c-d d || true
43
+ " $GIT_IMERGE " start --goal=full --first-parent --name=c-d d 2>&1 | tee start.out
44
+ if grep -q Traceback start.out
45
+ then
46
+ exit 1
47
+ fi
40
48
" $GIT_IMERGE " diagram --commits --frontier --html=imerge3.html
41
49
echo ' cd version' > conflict.txt
42
50
git add conflict.txt
You can’t perform that action at this time.
0 commit comments