Commit 49bbc9f6 authored by Daniel Stone's avatar Daniel Stone
Browse files

fdo-import-repo: Use pushd/popd, not GIT_DIR

parent 824c6da5
......@@ -52,7 +52,7 @@ class Repo:
return "/gitlab-data/git-data/repositories/%s.git" % self.url_gitlab
def gitlab_repo_mirror_cmd(self):
return 'GIT_DIR=%s git config --local fdo.mirror-dir %s && mkdir %s/custom_hooks && ln -s /gitlab-ssh-keys/git-post-receive-mirror %s/custom_hooks/post-receive' % (self.gitlab_repo_file_path(), self.url_fdo, self.gitlab_repo_file_path(), self.gitlab_repo_file_path())
return 'pushd %s && git config --local fdo.mirror-dir %s && mkdir %s/custom_hooks && ln -s /gitlab-ssh-keys/git-post-receive-mirror %s/custom_hooks/post-receive; popd' % (self.gitlab_repo_file_path(), self.url_fdo, self.gitlab_repo_file_path(), self.gitlab_repo_file_path())
def legacy_file_path(self):
return "/srv/git.freedesktop.org/git/%s.git" % self.url_fdo
......
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