lib/dev/Commands.rb in dev-1.0.202 vs lib/dev/Commands.rb in dev-1.0.203
- old
+ new
@@ -136,10 +136,10 @@
end
def has_diff
call=nil
- if File.exists?(".git")
+ if DEV[:scm_type] == "git" #File.exists?(".git")
call=Dev::SystemCall.new('git status')
return true if call.output.include?("new file:")
return true if call.output.include?("deleted:")
return true if call.output.include?("modified:")
end
\ No newline at end of file