lib/origen/revision_control/git.rb in origen-0.23.0 vs lib/origen/revision_control/git.rb in origen-0.24.0
- old
+ new
@@ -360,10 +360,14 @@
end
exit_status = wait_thr.value
unless exit_status.success?
if options[:check_errors]
- fail GitError, "This command failed: 'git #{command}'"
+ if output.any? { |l| l =~ /Not a git repository/ }
+ fail RevisionControlUninitializedError
+ else
+ fail GitError, "This command failed: 'git #{command}'"
+ end
end
end
end
end
output