We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1e62eb commit 60bdc25Copy full SHA for 60bdc25
1 file changed
watchChanges.sh
@@ -19,6 +19,7 @@ EOF
19
git config --unset-all http.https://github.com/.extraheader
20
git config user.email "$GIT_EMAIL"
21
git config user.name "$GIT_NAME"
22
+ git config pull.rebase false
23
fi
24
25
trap 'rm -f "$ASKPASS_SCRIPT"' EXIT
@@ -55,6 +56,7 @@ check_and_push_local_changes() {
55
56
echo "No local changes for 5 minutes. Pushing changes..."
57
git add -A
58
git commit -m "Auto-commit"
59
+ git_with_creds pull
60
git_with_creds push
61
break
62
@@ -87,4 +89,4 @@ if ! eval "$GIT_CREDS_PRESENT"; then
87
89
else
88
90
echo "Watching for changes in the directory..."
91
-watch_directory
92
+watch_directory
0 commit comments