Added '{repo_directory_arguments()}' to has_local_changes?
This commit is contained in:
@@ -35,7 +35,7 @@ class GitUpdater < Updater
|
||||
end
|
||||
|
||||
def has_local_changes?
|
||||
%x[git diff --exit-code 2>&1] =~ /diff/ ? true : false
|
||||
%x[git #{repo_directory_arguments()} diff --exit-code 2>&1] =~ /diff/ ? true : false
|
||||
end
|
||||
|
||||
def reset_head
|
||||
|
||||
@@ -47,7 +47,7 @@ describe GitUpdater do
|
||||
|
||||
describe "#has_local_changes?" do
|
||||
after :each do
|
||||
stub_system_command(@git_updater, /^git diff --exit-code 2>&1/, @stub_value)
|
||||
stub_system_command(@git_updater, /^git .* diff --exit-code 2>&1/, @stub_value)
|
||||
@git_updater.has_local_changes?.should === @expected
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user