git-gui: Allow users to choose/create/clone a repository
[gitweb.git] / git-gui.sh
index 3ddfcd50ebc701af6edd58e0098555b8e2333efc..37da8fde3b51a71ec0922d26245c25e363f7662a 100755 (executable)
@@ -833,9 +833,9 @@ if {[catch {
                set _gitdir [git rev-parse --git-dir]
                set _prefix [git rev-parse --show-prefix]
        } err]} {
-       catch {wm withdraw .}
-       error_popup [strcat [mc "Cannot find the git directory:"] "\n\n$err"]
-       exit 1
+       load_config 1
+       apply_config
+       choose_repository::pick
 }
 if {![file isdirectory $_gitdir] && [is_Cygwin]} {
        catch {set _gitdir [exec cygpath --windows $_gitdir]}