Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos-mynij-dev
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mynij
slapos-mynij-dev
Commits
8f4f9c64
Commit
8f4f9c64
authored
Jan 16, 2018
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gowork-snapshot: use origin/master as an example in code comment
parent
c53d0f43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
component/golang/gowork-snapshot
component/golang/gowork-snapshot
+2
-2
No files found.
component/golang/gowork-snapshot
View file @
8f4f9c64
...
@@ -25,8 +25,8 @@ gogit_list() {
...
@@ -25,8 +25,8 @@ gogit_list() {
# git_upstream_url <repo> - show current branch upstream URL
# git_upstream_url <repo> - show current branch upstream URL
git_upstream_url
()
{
git_upstream_url
()
{
repo
=
$1
repo
=
$1
head
=
"
`
git
-C
$repo
symbolic-ref
--short
HEAD
`
"
# current branch - e.g. "
t
"
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. "
kirr
"
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
url
=
"
`
git
-C
$repo
config
--get
remote.
$remote
.url
`
"
# upstream URL
echo
"
$url
"
echo
"
$url
"
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment