Non interactive GIT usage

git, version-control

Solution

Git does not ask questions when it's stdin and stdout is not connected to terminal (isatty() returns false), it usually ends with an error instead.

Problem

Is there an analog for SVN `--non-interactive` command line argument in GIT? I am using GIT via gitpython library and have a problem in some places - program freezes. In this case GIT is trying to ask something from the user, but it can't do it. I want to disallow the attempts. Here is process in freeze: ``` $ pstree -ap 14712 python,14712 src/auto-release └─git,14720 pull --strategy=recursive -Xtheirs -v origin +master:origin/master └─git-merge,14721 -s recursive -Xtheirs -v Merge branch 'master' of 172.17.2.22:~/test-repo HEAD 920e34cb7267f702b7a1bb3af93619175cb566f0 ```

Original source

Related problems