From: Paul Mackerras Date: Fri, 7 Dec 2007 09:50:09 +0000 (+1100) Subject: gitk: Fix bug in parsing multiple revision arguments X-Git-Tag: v1.5.6-rc0~20^2~43 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f78e7ab736467a0ae98695a8c661fe46fc93c50f;p=git.git 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 --- diff --git a/gitk b/gitk index e0eb3d0f8..46f9a35ff 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 {