public
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
Search Repo:
Made the integration tests failsafe with regards to changing commits in 
remote repositories.
francois (author)
Thu Apr 17 10:10:36 -0700 2008
commit  c26cf7fb64cb81a7adeb4857403ef44593c24a97
tree    4ae1728a2ac87e0032eb91fc32ccb0547ae90d69
parent  46d0ac78350d7a3977cd49c5c268e599480601bc
...
36
37
38
39
 
 
 
 
40
41
42
...
36
37
38
 
39
40
41
42
43
44
45
0
@@ -36,7 +36,10 @@
0
     info = YAML.load(File.read(wc_path + "vendor/attachment_fu/.piston.yml"))
0
     assert_equal 1, info["format"]
0
     assert_equal "git://github.com/technoweenie/attachment_fu.git", info["handler"][Piston::Git::URL]
0
- assert_equal "416fbb0017fa4ecaccfca4bcada592d694d532e1", info["handler"][Piston::Git::COMMIT]
0
+
0
+ response = `git-ls-remote git://github.com/technoweenie/attachment_fu.git`
0
+ head_commit = response.grep(/HEAD/).first.chomp.split(/\s+/).first
0
+ assert_equal head_commit, info["handler"][Piston::Git::COMMIT]
0
   end
0
 
0
   STATUS = %Q(# On branch master
...
30
31
32
33
34
 
 
 
35
36
37
...
30
31
32
 
33
34
35
36
37
38
39
0
@@ -30,8 +30,10 @@
0
     info = YAML.load(File.read(wc_path + "trunk/vendor/attachment_fu/.piston.yml"))
0
     assert_equal 1, info["format"]
0
     assert_equal "git://github.com/technoweenie/attachment_fu.git", info["handler"][Piston::Git::URL]
0
- assert_equal "416fbb0017fa4ecaccfca4bcada592d694d532e1", info["handler"][Piston::Git::COMMIT]
0
 
0
+ response = `git-ls-remote git://github.com/technoweenie/attachment_fu.git`
0
+ head_commit = response.grep(/HEAD/).first.chomp.split(/\s+/).first
0
+ assert_equal head_commit, info["handler"][Piston::Git::COMMIT]
0
   end
0
 
0
   ADD_STATUS = %Q(A vendor/attachment_fu

Comments

    No one has commented yet.