Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
nanahira
oh-my-fish
Commits
90f875e0
Commit
90f875e0
authored
Jun 20, 2022
by
Manu [tennox]
Committed by
Pablo Santiago Blum de Aguiar
Jun 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support installing repo from URL with non-master branch
Somewhat related to #905 and #685
parent
55da5f7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pkg/omf/functions/repo/omf.repo.pull.fish
pkg/omf/functions/repo/omf.repo.pull.fish
+4
-4
No files found.
pkg/omf/functions/repo/omf.repo.pull.fish
View file @
90f875e0
function omf.repo.pull -a repo_dir branch
function omf.repo.pull -a repo_dir branch
if test -z "$branch"
set branch "master"
end
function __omf.repo.git -V repo_dir
function __omf.repo.git -V repo_dir
command git -C "$repo_dir" $argv
command git -C "$repo_dir" $argv
end
end
if test -z "$branch"
set branch (__omf.repo.git symbolic-ref -q --short HEAD)
end
set -l remote origin
set -l remote origin
if test (__omf.repo.git config --get remote.upstream.url)
if test (__omf.repo.git config --get remote.upstream.url)
set remote upstream
set remote upstream
...
...
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