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
890104ab
Commit
890104ab
authored
Sep 06, 2015
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract git clone calls into `omf.repo.clone`
parent
af49d6f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
pkg/omf/cli/omf.install.fish
pkg/omf/cli/omf.install.fish
+2
-2
pkg/omf/cli/omf.repo.clone.fish
pkg/omf/cli/omf.repo.clone.fish
+3
-0
No files found.
pkg/omf/cli/omf.install.fish
View file @
890104ab
...
@@ -28,7 +28,7 @@ function omf.install -a type_flag name_or_url
...
@@ -28,7 +28,7 @@ function omf.install -a type_flag name_or_url
echo (omf::err)"Error: $local_name $install_type already installed."(omf::off) 1^&2
echo (omf::err)"Error: $local_name $install_type already installed."(omf::off) 1^&2
else
else
echo (omf::dim)"Trying to clone from URL..."(omf::off)
echo (omf::dim)"Trying to clone from URL..."(omf::off)
if
git clone -q
$name_or_url $OMF_PATH/$parent_path/$local_name
if
omf.repo.clone
$name_or_url $OMF_PATH/$parent_path/$local_name
omf.persist $install_type $name_or_url
omf.persist $install_type $name_or_url
_display_success "$install_type $name_or_url"
_display_success "$install_type $name_or_url"
else
else
...
@@ -46,7 +46,7 @@ function omf.install -a type_flag name_or_url
...
@@ -46,7 +46,7 @@ function omf.install -a type_flag name_or_url
echo (omf::em)"✔ $name_or_url $install_type up to date."(omf::off)
echo (omf::em)"✔ $name_or_url $install_type up to date."(omf::off)
else
else
echo (omf::dim)"Installing $name_or_url $install_type..."(omf::off)
echo (omf::dim)"Installing $name_or_url $install_type..."(omf::off)
if
git clone (cat $OMF_PATH/db/$target) $OMF_PATH/$target >/dev/null ^&1
if
omf.repo.clone (cat $OMF_PATH/db/$target) $OMF_PATH/$target
omf.persist $install_type $name_or_url
omf.persist $install_type $name_or_url
_display_success "$install_type $name_or_url"
_display_success "$install_type $name_or_url"
else
else
...
...
pkg/omf/cli/omf.repo.clone.fish
0 → 100644
View file @
890104ab
function omf.repo.clone -a url path
command git clone --quiet $url $path
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