Skip to content

Commit

Permalink
Support installing repo from URL with non-master branch
Browse files Browse the repository at this point in the history
Somewhat related to oh-my-fish#905 and oh-my-fish#685
  • Loading branch information
tennox committed Jun 20, 2022
1 parent d428b72 commit 4f48a9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/omf/functions/repo/omf.repo.pull.fish
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
function omf.repo.pull -a repo_dir branch
if test -z "$branch"
set branch "master"
end

function __omf.repo.git -V repo_dir
command git -C "$repo_dir" $argv
end

if test -z "$branch"
set branch (__omf.repo.git symbolic-ref -q --short HEAD)
end

set -l remote origin
if test (__omf.repo.git config --get remote.upstream.url)
set remote upstream
Expand Down

0 comments on commit 4f48a9f

Please sign in to comment.