lib/add.rb in dev_commands-0.0.56 vs lib/add.rb in dev_commands-0.0.57
- old
+ new
@@ -1,7 +1,7 @@
class Add < Array
def update
- if(File.exists?('.gitignore'))
+ if(File.exists?('.git') && File.exists?('.gitignore'))
add 'git add --all'
else
if(defined?(SOURCE))
if(File.exists?('.svn'))
SOURCE.each{|f|
\ No newline at end of file