Git config from a Python script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm trying to write Git hooks in Python. I'd like to run some git
commands from the hook, so I'm using the Python subprocess module.
When running the "git config" command, I can only get access to local
configuration, while the exact same command from a command line give
me access to both local and global configuration. I already checked
that environment variables from a program run by python are the same
as when run from the command line. So I'm wondering what else could be
the source of that difference.

I'm on Windows XP, using Git 1.6.4.msysgit.0 and Python 2.6.2.

Regards,

Jérôme Vuarand.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]