startapp 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rhc/git_helpers.rb +3 -3
- data/spec/rhc/commands/git_clone_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 679f956ade4ba0ac5fdf5985f643af40ab6249f7
|
4
|
+
data.tar.gz: 3a43ad507b4631546dff55d2ad9b748772be7ebd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01589ee7a90728ba9a6dd013abb15b65b66596e86dad82bae0191d21b580542896108ea5917eaf112c8227e57a780675a2e300b5d33f098c08c1e88ea4a235b2
|
7
|
+
data.tar.gz: 65f4cb31737a302b8aa5bdb240e74b79d8d46af3225683365a1157c4f05219e8e088d9b2f9c65eaaad1bb60e721c649f424b41191aa1c807a92a4dd11a8f31a2
|
data/lib/rhc/git_helpers.rb
CHANGED
@@ -42,7 +42,7 @@ module RHC
|
|
42
42
|
git_config_set "rhc.app-name", app.name
|
43
43
|
git_config_set "rhc.domain-name", app.domain_id
|
44
44
|
|
45
|
-
git_remote_add("
|
45
|
+
git_remote_add("upstream", app.initial_git_url) if app.initial_git_url.present?
|
46
46
|
end
|
47
47
|
|
48
48
|
git_clone_deploy_hooks(repo_dir)
|
@@ -51,10 +51,10 @@ module RHC
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def git_remote_add(remote_name, remote_url)
|
54
|
-
cmd = "#{git_cmd} remote add
|
54
|
+
cmd = "#{git_cmd} remote add upstream \"#{remote_url}\""
|
55
55
|
debug "Running #{cmd} 2>&1"
|
56
56
|
output = %x[#{cmd} 2>&1]
|
57
|
-
raise RHC::GitException, "Error while adding
|
57
|
+
raise RHC::GitException, "Error while adding upstream remote - #{output}" unless output.empty?
|
58
58
|
end
|
59
59
|
|
60
60
|
# :nocov: These all call external binaries so test them in cucumber
|
@@ -63,7 +63,7 @@ describe RHC::Commands::GitClone do
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
let(:arguments) { ['git-clone', 'app2'] }
|
66
|
-
it { run_output.should match("Added remote
|
66
|
+
it { run_output.should match("Added remote upstream pointing to git://test") }
|
67
67
|
end
|
68
68
|
|
69
69
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: startapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- StartApp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|