Merge pull request #20381 from colindean/patch-1
diagnostic: Use pushd/popd in uncommited modifications nudge
This commit is contained in:
commit
1c625aa2a0
@ -703,7 +703,7 @@ module Homebrew
|
|||||||
If this is a surprise to you, then you should stash these modifications.
|
If this is a surprise to you, then you should stash these modifications.
|
||||||
Stashing returns Homebrew to a pristine state but can be undone
|
Stashing returns Homebrew to a pristine state but can be undone
|
||||||
should you later need to do so for some reason.
|
should you later need to do so for some reason.
|
||||||
cd #{path} && git stash -u && git clean -d -f
|
git -C "#{path}" stash -u && git -C "${path}" clean -d -f
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
modified = status.split("\n")
|
modified = status.split("\n")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user