project: Fixed issue with fetching revision SHA
Fixes: #139 Fixes the issue of fetching SHAs when specified in manifest file. It is checked if a revision is a SHA, in which case the fetch is performed on the url and afterwards the manifest-rev reference is updated to the SHA. Signed-off-by: Torsten Rasmussen <torsten.rasmussen@nordicsemi.no>
This commit is contained in:
parent
8b4a08d6ac
commit
9874122997
|
@ -710,6 +710,11 @@ def _fetch(project):
|
|||
# separately.
|
||||
#
|
||||
# --tags is required to get tags when the remote is specified as an URL.
|
||||
if _is_sha(project.revision):
|
||||
# Don't fetch a SHA directly, as server may restrict from doing so.
|
||||
_git(project, fetch_cmd + ' --tags -- (url)')
|
||||
_git(project, 'update-ref (qual-manifest-rev-branch) (revision)')
|
||||
else:
|
||||
_git(project, fetch_cmd + ' --tags -- (url) (revision)')
|
||||
_git(project, 'update-ref (qual-manifest-rev-branch) FETCH_HEAD^{commit}')
|
||||
|
||||
|
|
Loading…
Reference in New Issue