File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,4 +18,4 @@ The steam of JsonTokens emitted by this crate unfortunately cannot quite
18
18
provide the Iter interface. The reason is: the emitted JsonTokens refer to an
19
19
internal buffer of the stream, and thus maintain a reference to the stream.
20
20
21
- Also, the iterator returns Results, to enable reporting of IO or JSON encoding errors.
21
+ The iterator returns Results, to enable reporting of IO or JSON encoding errors.
Original file line number Diff line number Diff line change @@ -21,14 +21,15 @@ if [[ -n $(git status -su) ]]; then
21
21
exit -1
22
22
fi
23
23
24
+ BRANCH=$( git rev-parse --abbrev-ref HEAD)
25
+
24
26
git fetch
25
- if [[ $( git rev-parse HEAD) != $( git rev-parse @{u}) ]]; then
27
+ if [[ $( git rev-parse HEAD) != $( git rev-parse @{u}) && $( git rev-parse HEAD ) != $( git rev-parse origin/ ${BRANCH} ) ]]; then
26
28
error ' Current branch diverged from origin, aborting merge request.'
27
29
git status
28
30
exit -1
29
31
fi
30
32
31
- BRANCH=$( git rev-parse --abbrev-ref HEAD)
32
33
if [[ ${BRANCH} == " master" ]]; then
33
34
error ' Refusing to attempt to merge master into master.'
34
35
exit -1
You can’t perform that action at this time.
0 commit comments