blob 864519eecfb2673b8efa211056f1e5ff15715714 337 bytes (raw)
name: git-parse-remote.sh # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
| | # This is a shell library to calculate the remote repository and
# upstream branch that should be pulled by "git pull" from the current
# branch.
get_default_remote () {
curr_branch=$(git symbolic-ref -q HEAD)
curr_branch="${curr_branch#refs/heads/}"
origin=$(git config --get "branch.$curr_branch.remote")
echo ${origin:-origin}
}
|
debug log:
solving 864519eecf ...
found 864519eecf in https://public-inbox.org/git/20201111151754.31527-4-avarab@gmail.com/
found e3f6195281 in https://public-inbox.org/git/20201111151754.31527-3-avarab@gmail.com/
found 6b743cda17 in https://public-inbox.org/git/20201111151754.31527-2-avarab@gmail.com/
found d3c39980f3 in https://80x24.org/mirrors/git.git
preparing index
index prepared:
100644 d3c39980f3fe2c346e4264d4b99a49acf7140301 git-parse-remote.sh
applying [1/3] https://public-inbox.org/git/20201111151754.31527-2-avarab@gmail.com/
diff --git a/git-parse-remote.sh b/git-parse-remote.sh
index d3c39980f3..6b743cda17 100644
applying [2/3] https://public-inbox.org/git/20201111151754.31527-3-avarab@gmail.com/
diff --git a/git-parse-remote.sh b/git-parse-remote.sh
index 6b743cda17..e3f6195281 100644
applying [3/3] https://public-inbox.org/git/20201111151754.31527-4-avarab@gmail.com/
diff --git a/git-parse-remote.sh b/git-parse-remote.sh
index e3f6195281..864519eecf 100644
Checking patch git-parse-remote.sh...
Applied patch git-parse-remote.sh cleanly.
Checking patch git-parse-remote.sh...
Applied patch git-parse-remote.sh cleanly.
Checking patch git-parse-remote.sh...
Applied patch git-parse-remote.sh cleanly.
index at:
100644 864519eecfb2673b8efa211056f1e5ff15715714 git-parse-remote.sh
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).