Skip to content

Commit

Permalink
fixup! git-gui: allow opening work trees from the startup dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
prati0100 committed Jun 8, 2020
1 parent 57ee04a commit 79089e5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/choose_repository.tcl
Expand Up @@ -357,10 +357,8 @@ proc _is_git {path {outdir_var ""}} {
if {$outdir_var ne ""} {
upvar 1 $outdir_var outdir
}
if {[catch {
set outdir [git rev-parse --resolve-git-dir $path]
} ]} {
return 0
if {[catch {set outdir [git rev-parse --resolve-git-dir $path]}]} {
return 0
}
return 1
}
Expand Down

0 comments on commit 79089e5

Please sign in to comment.