Skip to content

Commit 96b09ea

Browse files
committed
Update gitmerge.sh
1 parent 134c11a commit 96b09ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitmerge.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ echo -e "Merging ${CHIGHLIGHT}${currentBranch}${CNORMAL} with ${CHIGHLIGHT}${mer
4242
CHECKOUT=$((git checkout $mergeBranch) 2>&1)
4343
if [[ "${CHECKOUT}" =~ "error: pathspec" ]]; then
4444
echo -e "No such branch ${mergeBranch}. Creating..."
45-
git checkout -b $mergeBranch origin/$mergeBranch
45+
$((git checkout -b $mergeBranch origin/$mergeBranch) 2>&1)
4646
CURRENT=$((git rev-parse --abbrev-ref HEAD) 2>&1)
4747
if [[ "${CURRENT}" != "${mergeBranch}" ]]; then
4848
echo -e "Error: could not switch to ${mergeBranch}. ABORTING"

0 commit comments

Comments
 (0)