Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2018-09-26 19:26:51 +0300
committerJacob Vosmaer <jacob@gitlab.com>2018-09-26 19:26:51 +0300
commit554ba7f45cbd3a26ea92d832278ca5ee8d656c65 (patch)
tree6a9cf9de0b92d6f6244326f9f010344720f7a4ce
parent0092c4cfa3f6d2b6d4305dbb7ed100460c08afe3 (diff)
Use relative paths
-rwxr-xr-xtest-dedup13
1 files changed, 6 insertions, 7 deletions
diff --git a/test-dedup b/test-dedup
index f0a429dfa..524220887 100755
--- a/test-dedup
+++ b/test-dedup
@@ -12,7 +12,6 @@ at_exit do
end
def main
-
children = {}
%w[repo1 repo2 repo3].each { |name| children[name] = create_child(name) }
@@ -39,7 +38,7 @@ def main
children.each do |name, path|
open(File.join(path, 'objects/info/alternates'), 'w') do |f|
- f.puts File.join(pool, 'objects')
+ f.puts File.join('..', '..', File.basename(pool), 'objects')
end
# -l is important. Not sure about -A vs -a
@@ -50,13 +49,13 @@ def main
end
def add_child_to_pool(pool, child_name, child_path)
- run!(%W[git remote add #{child_name} #{child_path}], pool)
+ run!(%W[git remote add #{child_name} ../#{File.basename(child_path)}], pool)
- # this ensures every ref, including remote refs/tags, gets fetched
- run!(%W[git config remote.#{child_name}.fetch +refs/*:refs/remotes/#{child_name}/*], pool)
+ # this ensures every ref, including remote refs/tags, gets fetched
+ run!(%W[git config remote.#{child_name}.fetch +refs/*:refs/remotes/#{child_name}/*], pool)
- # this prevents remote tags being fetched into the top-level refs/tags namespace
- run!(%W[git config remote.#{child_name}.tagopt --no-tags], pool)
+ # this prevents remote tags being fetched into the top-level refs/tags namespace
+ run!(%W[git config remote.#{child_name}.tagopt --no-tags], pool)
end
def delete_top_level_refs(repo)