Skip to content

Commit 60bdc25

Browse files
authored
Fix auto commit not working
1 parent b1e62eb commit 60bdc25

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

watchChanges.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ EOF
1919
git config --unset-all http.https://github.com/.extraheader
2020
git config user.email "$GIT_EMAIL"
2121
git config user.name "$GIT_NAME"
22+
git config pull.rebase false
2223
fi
2324

2425
trap 'rm -f "$ASKPASS_SCRIPT"' EXIT
@@ -55,6 +56,7 @@ check_and_push_local_changes() {
5556
echo "No local changes for 5 minutes. Pushing changes..."
5657
git add -A
5758
git commit -m "Auto-commit"
59+
git_with_creds pull
5860
git_with_creds push
5961
break
6062
fi
@@ -87,4 +89,4 @@ if ! eval "$GIT_CREDS_PRESENT"; then
8789
else
8890
echo "Watching for changes in the directory..."
8991
fi
90-
watch_directory
92+
watch_directory

0 commit comments

Comments
 (0)