]> asedeno.scripts.mit.edu Git - git.git/blobdiff - lib/choose_rev.tcl
git-gui: Fix detaching current branch during checkout
[git.git] / lib / choose_rev.tcl
index 4147b7c5bcc55e46aea4ee516359308fdc394a77..ec064b3e13a6b2e6ab0e3ee05ab7a55cab8aa4bc 100644 (file)
@@ -34,6 +34,10 @@ proc new_unmerged {path {title {}}} {
 constructor _new {path unmerged_only title} {
        global current_branch is_detached
 
+       if {![info exists ::all_remotes]} {
+               load_all_remotes
+       }
+
        set w $path
 
        if {$title ne {}} {