OSDN Git Service

Fixed issue #155: Fix SVN Rebase sets upstream as remotes/trunk
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / Commands / TagCommand.cpp
index 3c2e20d..ba9026e 100644 (file)
 \r
 bool TagCommand::Execute()\r
 {\r
-       return CAppUtils::CreateBranchTag(TRUE);\r
+       CString base=parser.GetVal(_T("rev"));\r
+       CString *p=&base;\r
+       if(base.IsEmpty())\r
+               p=NULL;\r
+\r
+       return CAppUtils::CreateBranchTag(TRUE,p);\r
 }\r