History

Merge pull request #2132 from EliahKagan/run-ci/overlap

Use `git config` to make overlapping remotes in a test repo

Eliah Kagan committed 1 year ago

Commit a4b0d2c2 parents 2381693 c8c84e42 files · +9 −3Browse files

Unified · Split

2 files
  1. gix/tests/fixtures/generated-archives/make_remote_config_repos.tar +0 −0
  2. gix/tests/fixtures/make_remote_config_repos.sh +10 −4
gix/tests/fixtures/generated-archives/make_remote_config_repos.tar+0−0

Binary file not shown.

gix/tests/fixtures/make_remote_config_repos.sh+10−4
@@ -134,9 +134,15 @@ EOF · 133 unmodified lines
134 134
135git clone fetch multiple-remotes135git clone fetch multiple-remotes
136(cd multiple-remotes136(cd multiple-remotes
137 git remote add other ../fetch && git fetch other137 git remote add other ../fetch
138 git remote add with/two/slashes ../fetch && git fetch with/two/slashes138 git fetch other
139 git remote add with/two ../fetch && git fetch with/two139
140 git remote add with/two/slashes ../fetch
141 git fetch with/two/slashes
142
143 git config remote.with/two.url ../fetch
144 git config remote.with/two.fetch '+refs/heads/*:refs/remotes/with/two/*'
145 git fetch with/two
140 146
141 # add a specialised refspec mapping147 # add a specialised refspec mapping
142 git config --add remote.with/two.fetch +refs/heads/special:refs/remotes/with/two/special148 git config --add remote.with/two.fetch +refs/heads/special:refs/remotes/with/two/special
@@ -146,4 +152,4 @@ git clone fetch multiple-remotes · 3 unmodified lines
146 git checkout -b track-special with/two/special152 git checkout -b track-special with/two/special
147 git checkout -b main --track origin/main153 git checkout -b main --track origin/main
148 git checkout -b other-main --track other/main154 git checkout -b other-main --track other/main
149)155)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t