forked from thoughtworks/cruisecontrol.rb
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename daemon/cruise.sample to daemon/cruise, since it will work out …
…of the box for current user
- Loading branch information
Chad Woolley & Josh Susser
committed
May 12, 2009
1 parent
bdc8b2c
commit eb8b6a2
Showing
2 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
0001--234-state-closed-added-submodule-updates-to-git-u.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
From 891115b0d3cf5bd7026dfc4278b28637694d1bc1 Mon Sep 17 00:00:00 2001 | ||
From: Mike Gaffney <mike.gaffney@asolutions.com> | ||
Date: Wed, 22 Apr 2009 12:31:13 -0500 | ||
Subject: [PATCH] [#234 state:closed] added submodule updates to git updates, added tests | ||
|
||
--- | ||
lib/source_control/git.rb | 7 +++++++ | ||
test/unit/source_control/git_test.rb | 2 ++ | ||
2 files changed, 9 insertions(+), 0 deletions(-) | ||
|
||
diff --git a/lib/source_control/git.rb b/lib/source_control/git.rb | ||
index cec6fe2..ab15d04 100644 | ||
--- a/lib/source_control/git.rb | ||
+++ b/lib/source_control/git.rb | ||
@@ -48,6 +48,7 @@ module SourceControl | ||
else | ||
git("reset", ["--hard"]) | ||
end | ||
+ git_update_submodule | ||
end | ||
|
||
def up_to_date?(reasons = []) | ||
@@ -103,6 +104,12 @@ module SourceControl | ||
|
||
execute_in_local_copy(command, options, &block) | ||
end | ||
+ | ||
+ private | ||
+ | ||
+ def git_update_submodule | ||
+ git("submodule", ["update", "--init"]) | ||
+ end | ||
|
||
end | ||
|
||
diff --git a/test/unit/source_control/git_test.rb b/test/unit/source_control/git_test.rb | ||
index fdaaa13..b2ded62 100644 | ||
--- a/test/unit/source_control/git_test.rb | ||
+++ b/test/unit/source_control/git_test.rb | ||
@@ -19,6 +19,7 @@ class SourceControl::GitTest < Test::Unit::TestCase | ||
in_sandbox do | ||
git = new_git | ||
git.expects(:git).with("reset", ["--hard", '5460c9ea8872745629918986df7238871f4135ae']) | ||
+ git.expects(:git).with("submodule", ["update", "--init"]) | ||
git.update(Git::Revision.new(:number => '5460c9ea8872745629918986df7238871f4135ae')) | ||
end | ||
end | ||
@@ -27,6 +28,7 @@ class SourceControl::GitTest < Test::Unit::TestCase | ||
in_sandbox do | ||
git = new_git | ||
git.expects(:git).with("reset", ["--hard"]) | ||
+ git.expects(:git).with("submodule", ["update", "--init"]) | ||
git.update | ||
end | ||
end | ||
-- | ||
1.6.2.1.389.geed1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters