We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 134c11a commit 96b09eaCopy full SHA for 96b09ea
gitmerge.sh
@@ -42,7 +42,7 @@ echo -e "Merging ${CHIGHLIGHT}${currentBranch}${CNORMAL} with ${CHIGHLIGHT}${mer
42
CHECKOUT=$((git checkout $mergeBranch) 2>&1)
43
if [[ "${CHECKOUT}" =~ "error: pathspec" ]]; then
44
echo -e "No such branch ${mergeBranch}. Creating..."
45
- git checkout -b $mergeBranch origin/$mergeBranch
+ $((git checkout -b $mergeBranch origin/$mergeBranch) 2>&1)
46
CURRENT=$((git rev-parse --abbrev-ref HEAD) 2>&1)
47
if [[ "${CURRENT}" != "${mergeBranch}" ]]; then
48
echo -e "Error: could not switch to ${mergeBranch}. ABORTING"
0 commit comments