Permalink
Browse files

Clearer install dependency sha message

  • Loading branch information...
1 parent bb09440 commit d2e0c7f1bfbc522388ee844ff93d7142cc287e87 @ianwhite committed Feb 11, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/garlic/target.rb
View
@@ -81,9 +81,9 @@ def install_dependency(repo, install_path = ".", options = {}, &block)
old_tree_ish = repo.head_sha
repo.checkout(tree_ish) if tree_ish
if read_sha(install_path) == repo.head_sha
- puts "#{install_path} is up to date at #{tree_ish || 'default'}"
+ puts "#{install_path} is up to date at #{tree_ish || repo.head_sha[0..6]}"
else
- puts "#{install_path} needs update to #{tree_ish || 'default'}, exporting archive from #{repo.name}..."
+ puts "#{install_path} needs update to #{tree_ish || repo.head_sha[0..6]}, exporting archive from #{repo.name}..."
repo.export_to(File.join(path, install_path))
cd(path) { garlic.instance_eval(&block) } if block_given?
write_sha(install_path, repo.head_sha)

0 comments on commit d2e0c7f

Please sign in to comment.