I'm trying to write an automated build script, and one step pulls and merges the upstream master into the current branch. To do this, I'm running:
git pull origin master
However, if it finds any changes, it launches a terminal editor and prompts me to enter a merge comment. Why is a pull action trying to merge, and how do I disable this so it doesn't block the automated script?
If it can automatically merge, then it should complete with with no error code and no user prompts. Only if there's a conflict, should it return an error code.