Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Check abbot first

  • Loading branch information...
commit 5edfbeeba05d62eaacddd91ae166553a512d7527 1 parent 8969aa7
Charles Jolley authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 Rakefile
View
10 Rakefile
@@ -313,15 +313,19 @@ namespace :git do
desc "verifies there are no pending changes to commit to git"
task :verify_clean do
- DIST.keys.push('abbot').each do |repo_name|
+ DIST.keys.unshift('abbot').each do |repo_name|
full_path = repo_name=='abbot' ? ROOT_PATH : (ROOT_PATH / repo_name)
- result = `cd #{full_path}; git status`
+ cwd = Dir.pwd
+ FileUtils.chdir(full_path)
+ result = `git status`
+ FileUtils.chdir(cwd)
+
if !(result =~ /nothing to commit \(working directory clean\)/)
$stderr.puts "\nFATAL: Cannot complete task: changes are still pending in the '#{repo_name}' repository."
$stderr.puts " Commit your changes to git to continue.\n\n"
exit(1)
- end
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.