OSDN Git Service

BrowseRefs: Always set initial ref
authorJohan 't Hart <johanthart@gmail.com>
Tue, 9 Jun 2009 20:31:42 +0000 (22:31 +0200)
committerJohan 't Hart <johanthart@gmail.com>
Tue, 9 Jun 2009 20:31:42 +0000 (22:31 +0200)
src/TortoiseProc/BrowseRefsDlg.cpp

index 0236410..f8509c0 100644 (file)
@@ -736,6 +736,8 @@ CString CBrowseRefsDlg::PickRef(bool returnAsHash, CString initialRef, int pickR
 {\r
        CBrowseRefsDlg dlg(CString(),NULL);\r
        \r
+       if(initialRef.IsEmpty())\r
+               initialRef = L"HEAD";\r
        dlg.m_initialRef = initialRef;\r
        dlg.m_pickRef_Kind = pickRef_Kind;\r
 \r