We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9373c76 commit 1b782aaCopy full SHA for 1b782aa
bin/sr3_commit
@@ -1,7 +1,5 @@
1
#!/bin/bash
2
3
-MAIN_BRANCH="main"
4
-
5
if [ $# -lt 1 ]; then
6
echo '[ERROR] no file(s) to commit'
7
echo 'Usage: sr3_commit <pathspec>... [-m <msg>]'
@@ -41,7 +39,7 @@ if ! git status > /dev/null; then
41
39
fi
42
40
43
# Update the repository
44
-if ! git pull origin "${MAIN_BRANCH}"; then
+if ! git pull; then
45
echo "[ERROR] Problem updating local repository. Please resolve manually and retry."
46
exit 5
47
0 commit comments