mirror of
https://github.com/git/git.git
synced 2024-11-29 13:06:07 +08:00
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>
This commit is contained in:
parent
38dfe93916
commit
f78e7ab736
2
gitk
2
gitk
@ -106,7 +106,7 @@ proc start_rev_list {view} {
|
|||||||
set vnextroot($view) 0
|
set vnextroot($view) 0
|
||||||
varcinit $view
|
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)]
|
$viewargs($view)]
|
||||||
set viewincl($view) {}
|
set viewincl($view) {}
|
||||||
foreach c $commits {
|
foreach c $commits {
|
||||||
|
Loading…
Reference in New Issue
Block a user