Skip to content

Commit 1b782aa

Browse files
remove branch from pull before commit
1 parent 9373c76 commit 1b782aa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bin/sr3_commit

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
MAIN_BRANCH="main"
4-
53
if [ $# -lt 1 ]; then
64
echo '[ERROR] no file(s) to commit'
75
echo 'Usage: sr3_commit <pathspec>... [-m <msg>]'
@@ -41,7 +39,7 @@ if ! git status > /dev/null; then
4139
fi
4240

4341
# Update the repository
44-
if ! git pull origin "${MAIN_BRANCH}"; then
42+
if ! git pull; then
4543
echo "[ERROR] Problem updating local repository. Please resolve manually and retry."
4644
exit 5
4745
fi

0 commit comments

Comments
 (0)