Skip to content

Commit

Permalink
Make sure that git log gets --all commits
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoch committed Aug 29, 2021
1 parent 344f88c commit 71fe3eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spack/spack/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@ def get_commit_lookup(self, version, spack_versions):
commit_to_version[commit.strip()] = spack_version

# Get list of all commits, this is in reverse order
commits = self.fetcher.git("log", "--pretty=format:%H", output=str)
commits = self.fetcher.git("log", "--all", "--pretty=format:%H", output=str)

# commits[0] is most recent, commits[-2] is first
commits = [c for c in commits.split('\n') if c]
Expand Down

0 comments on commit 71fe3eb

Please sign in to comment.