Skip to content

Commit

Permalink
Fix tag issue and use depth=1 to shallow clone
Browse files Browse the repository at this point in the history
  • Loading branch information
WenqingLiAMD committed Sep 30, 2022
1 parent f56825e commit 9211c06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/amdvlk_build_for_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def SetupBuildTagInfo(self, inputTag):
exit(-1)

self.version = self.buildTag[2:]
tagRef = repo.tag(self.buildTag)
tagRef = repo.tag('refs/tags/' + self.buildTag)
if self.IsBuildTagNewer():
self.descript = tagRef.object.message
else:
Expand Down Expand Up @@ -121,7 +121,7 @@ def SyncAMDVLK(self):
os.chdir(self.srcDir)

repoName = 'AMDVLK'
initCmd='repo init -u ' + self.targetRepo + repoName + ' -b refs/tags/' + self.buildTag
initCmd='repo init --depth=1 -u ' + self.targetRepo + repoName + ' -b refs/tags/' + self.buildTag
syncCmd='repo sync -j8'
if self.IsBuildTagNewer():
initCmd += ' -m build_with_tools.xml'
Expand Down

0 comments on commit 9211c06

Please sign in to comment.