Commit 8f4f9c64 authored by Jérome Perrin's avatar Jérome Perrin

gowork-snapshot: use origin/master as an example in code comment

parent c53d0f43
......@@ -25,8 +25,8 @@ gogit_list() {
# git_upstream_url <repo> - show current branch upstream URL
git_upstream_url() {
repo=$1
head="`git -C $repo symbolic-ref --short HEAD`" # current branch - e.g. "t"
remote="`git -C $repo config --get branch.$head.remote`" # upstream name, e.g. "kirr"
head="`git -C $repo symbolic-ref --short HEAD`" # current branch - e.g. "master"
remote="`git -C $repo config --get branch.$head.remote`" # upstream name, e.g. "origin"
url="`git -C $repo config --get remote.$remote.url`" # upstream URL
echo "$url"
}
......
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