Read about our upcoming Code of Conduct on this issue

Commit c202b8aa authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

fetch-watch-tags: avoid chdir

We are about to launch subprocesses that will expect cwd to be
this repository.
parent 6981bec16650
......@@ -161,5 +161,4 @@
cl_args = parser.parse_args()
simulate = cl_args.simulate
os.chdir(cl_args.gitlab_repo)
......@@ -165,5 +164,5 @@
cmd = ['git', 'fetch', '--tags']
cmd = ['git', '-C', cl_args.gitlab_repo, 'fetch', '--tags']
if simulate:
cmd.append('--dry-run')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment