Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
A few tweaks to git support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Watson committed Mar 18, 2008
1 parent 708e0da commit 7d815cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/piston 100755 → 100644
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#! /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
require "piston"

# Chain to the real command-line client
Expand Down
2 changes: 2 additions & 0 deletions lib/piston/git/commit.rb
Expand Up @@ -31,11 +31,13 @@ def each
@dir.find do |path|
Find.prune if path.to_s =~ %r{/[.]git}
next if @dir == path
next if File.directory?(path)
yield path.relative_path_from(@dir)
end
end

def copy_to(relpath, abspath)
Pathname.new(abspath).dirname.mkpath rescue nil
FileUtils.cp(@dir + relpath, abspath)
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/piston/working_copy.rb
Expand Up @@ -12,7 +12,7 @@ def logger
end

def guess(path)
path = path.kind_of?(Pathname) ? path : Pathname.new(path)
path = path.kind_of?(Pathname) ? path : Pathname.new(path.to_s)
logger.debug {"Guessing the working copy type of #{path.inspect}"}
handler = handlers.detect do |handler|
logger.debug {"Asking #{handler.name} if it understands #{path}"}
Expand Down

0 comments on commit 7d815cd

Please sign in to comment.