Skip to content

Commit

Permalink
Allow using plugin in mixed perforce/git pipelines (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
ca-johnson authored Jan 24, 2020
1 parent 5b1aa6d commit f56455e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/checkout.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def main():
repo = P4Repo(**config)

revision = get_build_revision()
if revision == 'HEAD':
# Resolve HEAD to a concrete revision
if not revision.isdigit():
# Resolve 'HEAD' or ignore git sha and find a concrete revision
revision = repo.head()
set_build_revision(revision)

Expand Down

0 comments on commit f56455e

Please sign in to comment.