File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,9 @@ config file would appear like this:
33
33
------------
34
34
35
35
The `<pushurl>` is used for pushes only. It is optional and defaults
36
- to `<URL>`.
36
+ to `<URL>`. Pushing to a remote affects all defined pushurls or to all
37
+ defined urls if no pushurls are defined. Fetch, however, will only
38
+ fetch from the first defined url if muliple urls are defined.
37
39
38
40
Named file in `$GIT_DIR/remotes`
39
41
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -806,6 +806,14 @@ test_expect_success 'fetch.writeCommitGraph with submodules' '
806
806
)
807
807
'
808
808
809
+ # fetches from first configured url
810
+ test_expect_success ' fetch from multiple configured URLs in single remote' '
811
+ git init url1 &&
812
+ git remote add multipleurls url1 &&
813
+ git remote set-url --add multipleurls url2 &&
814
+ git fetch multipleurls
815
+ '
816
+
809
817
# configured prune tests
810
818
811
819
set_config_tristate () {
You can’t perform that action at this time.
0 commit comments