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
53d37a98
Commit
53d37a98
authored
Mar 02, 2021
by
fdeitylink
Committed by
Pablo Aguiar
Mar 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packages: do not set default pkg branch to master
parent
f9595961
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
pkg/omf/functions/packages/omf.packages.install.fish
pkg/omf/functions/packages/omf.packages.install.fish
+1
-3
pkg/omf/functions/repo/omf.repo.clone.fish
pkg/omf/functions/repo/omf.repo.clone.fish
+5
-1
No files found.
pkg/omf/functions/packages/omf.packages.install.fish
View file @
53d37a98
...
@@ -16,12 +16,10 @@ function omf.packages.install -a name_or_url
...
@@ -16,12 +16,10 @@ function omf.packages.install -a name_or_url
set name $name_or_url
set name $name_or_url
set url $props[2]
set url $props[2]
set branch $props[3]
set branch $props[3]
if test -z "$branch"
set branch "master"
end
else
else
set name (omf.packages.name $name_or_url)
set name (omf.packages.name $name_or_url)
set url $name_or_url
set url $name_or_url
set branch ""
end
end
if contains -- $name (omf.packages.list)
if contains -- $name (omf.packages.list)
...
...
pkg/omf/functions/repo/omf.repo.clone.fish
View file @
53d37a98
function omf.repo.clone -a url branch path
function omf.repo.clone -a url branch path
if test -z "$branch"
command git clone --quiet $url $path
else
command git clone --quiet $url -b $branch $path
command git clone --quiet $url -b $branch $path
end
end
end
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