{"thread":{"id":"25021","subject":"Git config from a Python script","startedAt":"2010-09-07T12:45:31Z","lastAt":"2010-09-07T12:45:31Z","messageCount":1,"participants":["Jerome Vuarand"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"150210","messageId":"AANLkTinUi-c+Vo36EYjKoH-0Ye-J0ZFtqeMySdmnHf2L@mail.gmail.com","threadId":"25021","inReplyTo":null,"subject":"Git config from a Python script","fromName":"Jerome Vuarand","fromEmail":"jerome.vuarand@gmail.com","sentAt":"2010-09-07T12:45:31Z","receivedAt":"2010-09-07T12:45:31Z","isPatch":false,"sender":{"key":"jerome.vuarand@gmail.com","avatar":null},"body":"Hi,\n\nI'm trying to write Git hooks in Python. I'd like to run some git\ncommands from the hook, so I'm using the Python subprocess module.\nWhen running the \"git config\" command, I can only get access to local\nconfiguration, while the exact same command from a command line give\nme access to both local and global configuration. I already checked\nthat environment variables from a program run by python are the same\nas when run from the command line. So I'm wondering what else could be\nthe source of that difference.\n\nI'm on Windows XP, using Git 1.6.4.msysgit.0 and Python 2.6.2.\n\nRegards,\n\nJérôme Vuarand.\n"}]}