GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Piston is a utility that eases vendor branch management. This repository is a complete reimplementation of Piston to provide different backends, depending on the repositories and working copies you pistonize from.
Homepage: http://piston.rubyforge.org/
Clone URL: git://github.com/francois/piston.git
Piston::Git::Repository#understands_url? should not break if git-ls-remote 
failed.

This only indicates that the remote repository isn't a Git repository.
francois (author)
Sat Mar 22 18:17:10 -0700 2008
commit  92a28cb69ba1a52a7c15d3ee26bf002f5256c3c1
tree    2e37ed669d8bc5b2bdc3c98c579667a4e4400114
parent  6521f826457f8ef2aba8e25f10d60ef419a6511f
...
14
15
16
17
18
19
 
 
 
 
 
 
 
20
21
22
...
14
15
16
 
 
 
17
18
19
20
21
22
23
24
25
26
0
@@ -14,9 +14,13 @@ module Piston
0
           uri = URI.parse(url)
0
           return true if %w(git).include?(uri.scheme)
0
 
0
- response = git("ls-remote", "--heads", url)
0
- return false if response.nil? || response.strip.chomp.empty?
0
- !!(response =~ /[a-f\d]{40}\s/)
0
+ begin
0
+ response = git("ls-remote", "--heads", url)
0
+ return false if response.nil? || response.strip.chomp.empty?
0
+ !!(response =~ /[a-f\d]{40}\s/)
0
+ rescue Piston::Git::Client::CommandError
0
+ false
0
+ end
0
         end
0
       end
0
 

Comments

    No one has commented yet.