summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 537601a)
raw | patch | inline | side by side (parent: 537601a)
author | Simon Hausmann <simon@lst.de> | |
Wed, 25 Jul 2007 07:31:38 +0000 (09:31 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 25 Jul 2007 23:06:54 +0000 (16:06 -0700) |
Fall back to USERPROFILE if HOME isn't set.
Signed-off-by: Simon Hausmann <shausman@trolltech.com>
Signed-off-by: Marius Storm-Olsen <marius@trolltech.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Simon Hausmann <shausman@trolltech.com>
Signed-off-by: Marius Storm-Olsen <marius@trolltech.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/fast-import/git-p4 | patch | blob | history |
index e3404ca853c8b54f1a0c64be7038d282746652a7..1f5a56ee7ffcedb854d84023fdf61570dcffe67e 100755 (executable)
% (labelDetails["label"], change))
def getUserCacheFilename(self):
- return os.environ["HOME"] + "/.gitp4-usercache.txt"
+ home = os.environ.get("HOME", os.environ.get("USERPROFILE"))
+ return home + "/.gitp4-usercache.txt"
def getUserMapFromPerforceServer(self):
if self.userMapFromPerforceServer: