mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-24 02:03:15 +08:00
Merge pull request #475 from derekstavis/issue-474
fix issue #474 by using pushd/popd
This commit is contained in:
commit
6865c68ae4
|
@ -7,7 +7,9 @@ function omf.git
|
|||
git clone --quiet $repo_url $path ^ /tmp/oh-my-fish.clone.log
|
||||
case '--update'
|
||||
set -l path $argv[2]
|
||||
return (cd $path; and git pull --quiet --rebase > /dev/null; echo $status)
|
||||
return (pushd $path; and git pull --quiet --rebase > /dev/null
|
||||
echo $status
|
||||
popd > /dev/null)
|
||||
case '*'
|
||||
omf.log red 'Unknown option'
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user