projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5031985
)
gitview: ls-remote invocation shellquote safety.
author
Junio C Hamano
<junkio@cox.net>
Wed, 22 Feb 2006 11:47:20 +0000
(
03:47
-0800)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 22 Feb 2006 11:47:20 +0000
(
03:47
-0800)
This will allow you to point GIT_DIR at directories with funny names.
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/gitview/gitview
patch
|
blob
|
history
diff --git
a/contrib/gitview/gitview
b/contrib/gitview/gitview
index
5c338c0
..
4b52eb7
100755
(executable)
--- a/
contrib/gitview/gitview
+++ b/
contrib/gitview/gitview
@@
-454,11
+454,7
@@
class GitView:
self.bt_sha1 = { }
ls_remote = re.compile('^(.{40})\trefs/([^^]+)(?:\\^(..))?$');
- git_dir = os.getenv("GIT_DIR")
- if (git_dir == None):
- git_dir = ".git"
-
- fp = os.popen('git ls-remote ' + git_dir)
+ fp = os.popen('git ls-remote "${GIT_DIR-.git}"')
while 1:
line = string.strip(fp.readline())
if line == '':