Skip to content

Commit 57bafca

Browse files
authored
Readme fix (#8)
* Fix readme text * merge tooling fix
1 parent 6463266 commit 57bafca

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ The steam of JsonTokens emitted by this crate unfortunately cannot quite
1818
provide the Iter interface. The reason is: the emitted JsonTokens refer to an
1919
internal buffer of the stream, and thus maintain a reference to the stream.
2020

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.

tools/merge.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ if [[ -n $(git status -su) ]]; then
2121
exit -1
2222
fi
2323

24+
BRANCH=$(git rev-parse --abbrev-ref HEAD)
25+
2426
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
2628
error 'Current branch diverged from origin, aborting merge request.'
2729
git status
2830
exit -1
2931
fi
3032

31-
BRANCH=$(git rev-parse --abbrev-ref HEAD)
3233
if [[ ${BRANCH} == "master" ]]; then
3334
error 'Refusing to attempt to merge master into master.'
3435
exit -1

0 commit comments

Comments
 (0)