From: Jerome Vuarand <jerome.vuarand@gmail.com>
To: git@vger.kernel.org
Subject: Git config from a Python script
Date: Tue, 7 Sep 2010 14:45:31 +0200 [thread overview]
Message-ID: <AANLkTinUi-c+Vo36EYjKoH-0Ye-J0ZFtqeMySdmnHf2L@mail.gmail.com> (raw)
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.
reply other threads:[~2010-09-07 12:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTinUi-c+Vo36EYjKoH-0Ye-J0ZFtqeMySdmnHf2L@mail.gmail.com \
--to=jerome.vuarand@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).