Skip to content

Commit

Permalink
use a unique timestamp for renamed branches
Browse files Browse the repository at this point in the history
  • Loading branch information
ohumbel committed Aug 26, 2015
1 parent 5810698 commit 09ebb87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def copybranch(existingbranchname, newbranchname):
@staticmethod
def promotebranchtomaster(branchname):
master = "master"
masterename = Commiter.renamebranch(master, "masterRenamedAt_" + datetime.now().strftime('%H_%M_%S'))
masterename = Commiter.renamebranch(master, "masterRenamedAt_" + datetime.now().strftime('%Y%m%d_%H%M%S'))
copybranch = Commiter.copybranch(branchname, master)

if masterename is 0 and copybranch is 0:
Expand Down

0 comments on commit 09ebb87

Please sign in to comment.