Skip to content

Commit f9bcbb7

Browse files
authored
Small modes to release script (#1147)
Signed-off-by: Jo De Boeck <[email protected]>
1 parent c432ffd commit f9bcbb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/versions/makerelease

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ def main(manifest, force, dry):
143143
repo['info'] = get_repo_info(repo['url'])
144144
if j.system.fs.exists(repo['info'].path):
145145
repo['client'] = j.clients.git.get(repo['info'].path)
146-
repo['client'].repo.git.fetch('origin', '{0}:remotes/origin/{0}'.format(source.name))
147-
repo['client'].repo.git.reset('--hard', 'remotes/origin/{0}'.format(source.name))
146+
repo['client'].repo.git.fetch('origin', '{0}'.format(source.name))
147+
repo['client'].repo.git.checkout('-B', source.name, 'remotes/origin/{0}'.format(source.name))
148148
else:
149149
j.console.info('Cloning {}/{}'.format(repo['info'].account, repo['info'].reponame))
150150
j.do.pullGitRepo(repo['url'], **{target.type: target.name})

0 commit comments

Comments
 (0)