Skip to content

Commit

Permalink
git: remove unused git invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
jkloetzke committed Jul 1, 2023
1 parent b5eeead commit 51dea50
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pym/bob/scm/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,13 +704,6 @@ def status(self, workspacePath):
actual = ("'" + ", ".join(output) + "'") if output else "not on any tag"
status.add(ScmTaint.switched,
"> tag: configured: '{}', actual: {}".format(self.__tag, actual))

# Need to check if the tag still exists. Otherwise the "git
# log" command at the end will trip.
try:
self.callGit(workspacePath, 'rev-parse', 'tags/'+self.__tag)
except BuildError:
pass
elif self.__branch:
output = self.callGit(workspacePath, 'rev-parse', '--abbrev-ref', 'HEAD')
if output != self.__branch:
Expand Down

0 comments on commit 51dea50

Please sign in to comment.