Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
#40 Release notes should also work in-place
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafał Nowosielski committed Oct 1, 2015
1 parent f9488ae commit ed285ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions JustReleaseNotes/sourcers/GitRepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,11 @@ def checkout(self):
self.__repoX = Repo.clone_from(self.__repo, path)
release_notes_head = self.__repoX.create_head(self.__branch, self.__remote + "/" + self.__branch)
self.__repoX.head.reference = release_notes_head
self.__repoX.head.reset(index=True, working_tree=True)
except:
self.__repoX = Repo(path)
self.__repoX.head.reference = self.__repoX.heads[self.__branch]


self.__repoX.head.reset(index=True, working_tree=True)
o = self.__repoX.remotes[self.__remote]
o.pull()

def setParents(self, commit):
if len(commit.parents) == 0:
return
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
long_description = description

setup(name='JustReleaseNotes',
version='0.1.7',
version='0.1.8',
description='Release notes generator package',
long_description=long_description,
url='https://github.com/Cimpress-MCP/JustReleaseNotes',
Expand Down

0 comments on commit ed285ee

Please sign in to comment.