|
|
@ -77,14 +77,13 @@ public abstract class RefRename { |
|
|
|
source = src; |
|
|
|
source = src; |
|
|
|
destination = dst; |
|
|
|
destination = dst; |
|
|
|
|
|
|
|
|
|
|
|
Repository repo = destination.getRepository(); |
|
|
|
|
|
|
|
String cmd = ""; |
|
|
|
String cmd = ""; |
|
|
|
if (source.getName().startsWith(Constants.R_HEADS) |
|
|
|
if (source.getName().startsWith(Constants.R_HEADS) |
|
|
|
&& destination.getName().startsWith(Constants.R_HEADS)) |
|
|
|
&& destination.getName().startsWith(Constants.R_HEADS)) |
|
|
|
cmd = "Branch: "; |
|
|
|
cmd = "Branch: "; |
|
|
|
setRefLogMessage(cmd + "renamed " |
|
|
|
setRefLogMessage(cmd + "renamed " |
|
|
|
+ repo.shortenRefName(source.getName()) + " to " |
|
|
|
+ Repository.shortenRefName(source.getName()) + " to " |
|
|
|
+ repo.shortenRefName(destination.getName())); |
|
|
|
+ Repository.shortenRefName(destination.getName())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** @return identity of the user making the change in the reflog. */ |
|
|
|
/** @return identity of the user making the change in the reflog. */ |
|
|
|