summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2007-12-07 20:50:09 +1100
committerPaul Mackerras <paulus@samba.org>2007-12-07 20:50:09 +1100
commitf78e7ab736467a0ae98695a8c661fe46fc93c50f (patch)
tree0c6c4ae1938906e1abc721a5b83b98d0979cb6cf
parent38dfe939162af50fb09088c4a888b1c719f328cc (diff)
downloadgit-f78e7ab736467a0ae98695a8c661fe46fc93c50f.tar.gz
gitk: Fix bug in parsing multiple revision arguments
If the user specified multiple revisions arguments on the command line or for a view, we were passing the whole list of arguments to git rev-parse as a single argument, and thus git rev-parse didn't interpret it as revisions. This fixes it by adding an eval so the arguments get passed to git rev-parse as separate arguments. Signed-off-by: Paul Mackerras <paulus@samba.org>
-rwxr-xr-xgitk2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitk b/gitk
index e0eb3d0f8e..46f9a35ffa 100755
--- a/gitk
+++ b/gitk
@@ -106,7 +106,7 @@ proc start_rev_list {view} {
set vnextroot($view) 0
varcinit $view
- set commits [exec git rev-parse --default HEAD --revs-only \
+ set commits [eval exec git rev-parse --default HEAD --revs-only \
$viewargs($view)]
set viewincl($view) {}
foreach c $commits {