lib/missing_translation/util.rb in missing_translation-0.4.2 vs lib/missing_translation/util.rb in missing_translation-0.4.3
- old
+ new
@@ -4,17 +4,12 @@
module MissingTranslation
class Util
def self.uncommitted_changes?
status = `git status --porcelain`
- return false if $CHILD_STATUS.success? && status.empty?
+ return false if status.empty?
- error = if $CHILD_STATUS.success?
- "You have uncommitted code. Please commit or stash your changes before continuing"
- else
- "You do not have Git installed. Please install Git, and commit your changes before continuing"
- end
- p error
+ puts "You have uncommitted code. Please commit or stash your changes before continuing"
true
end
def self.commit_all_changes(message)
status = `git add .`
\ No newline at end of file