Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 5714722

Browse files
committed
Merge branch 'jl/use-vsatisfy-correctly-for-2.0'
* jl/use-vsatisfy-correctly-for-2.0: git-gui: tolerate major version changes when comparing the git version
2 parents c29bf4a + b3f0c5c commit 5714722

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git-gui/git-gui.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ load_config 0
12831283
apply_config
12841284
12851285
# v1.7.0 introduced --show-toplevel to return the canonical work-tree
1286-
if {[package vsatisfies $_git_version 1.7.0]} {
1286+
if {[package vsatisfies $_git_version 1.7.0-]} {
12871287
if { [is_Cygwin] } {
12881288
catch {set _gitworktree [exec cygpath --windows [git rev-parse --show-toplevel]]}
12891289
} else {
@@ -1539,7 +1539,7 @@ proc rescan_stage2 {fd after} {
15391539
close $fd
15401540
}
15411541
1542-
if {[package vsatisfies $::_git_version 1.6.3]} {
1542+
if {[package vsatisfies $::_git_version 1.6.3-]} {
15431543
set ls_others [list --exclude-standard]
15441544
} else {
15451545
set ls_others [list --exclude-per-directory=.gitignore]

0 commit comments

Comments
 (0)