You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/changes.rst
+3
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,9 @@ NEXT
27
27
* ### Git Cmd ###
28
28
29
29
* Added ``version_info`` property to git command, returning a tuple of version numbers.
30
+
* Added GIT_PYTHON_GIT_EXECUTABLE environment variable, which can be used to set the desired git executable to be used. despite of what would be found in the path.
31
+
* GIT_PYTHON_TRACE is now set on class level of the Git type, previously it was a module level global variable.
32
+
* GIT_PYTHON_GIT_EXECUTABLE is a class level variable as well.
Copy file name to clipboardExpand all lines: doc/source/tutorial.rst
+14
Original file line number
Diff line number
Diff line change
@@ -412,6 +412,20 @@ The special notion ``git.command(flag=True)`` will create a flag without value l
412
412
413
413
If ``None`` is found in the arguments, it will be dropped silently. Lists and tuples passed as arguments will be unpacked recursively to individual arguments. Objects are converted to strings using the str(...) function.
414
414
415
+
Git Command Debugging and Customization
416
+
***************************************
417
+
418
+
Using environment variables, you can further adjust the behaviour of the git command.
419
+
420
+
* **GIT_PYTHON_TRACE**
421
+
422
+
* If set to non-0, all executed git commands will be printed to stdout.
423
+
* if set to *full*, the executed git command will be printed along with its output.
424
+
425
+
* **GIT_PYTHON_GIT_EXECUTABLE**
426
+
427
+
* If set, it should contain the full path to the git executable, e.g. *c:\\Program Files (x86)\\Git\\bin\\git.exe* on windows or */usr/bin/git* on linux.
0 commit comments