gitcycle 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/gitcycle.gemspec +1 -1
- data/lib/gitcycle.rb +10 -2
- metadata +4 -4
data/README.md
CHANGED
@@ -23,7 +23,7 @@ Type `gitc` + your ticket URL to create a new branch:
|
|
23
23
|
Pull Changes from Upstream
|
24
24
|
--------------------------
|
25
25
|
|
26
|
-
When you're developing, you may need to pull new changes from
|
26
|
+
When you're developing, you may need to pull new changes from an upstream branch:
|
27
27
|
|
28
28
|
gitc pull
|
29
29
|
|
@@ -124,4 +124,4 @@ Todo
|
|
124
124
|
* Instead of detecting CONFLICT, use error status $? != 0
|
125
125
|
* Label issues with ticket milestone?
|
126
126
|
* gitc LH-ticket should not created a redis record right away, what happens if someone control-c
|
127
|
-
* gitc -h or gitc help
|
127
|
+
* gitc -h or gitc help
|
data/gitcycle.gemspec
CHANGED
data/lib/gitcycle.rb
CHANGED
@@ -126,9 +126,11 @@ class Gitcycle
|
|
126
126
|
def pull
|
127
127
|
require_git && require_config
|
128
128
|
|
129
|
+
current_branch = branches(:current => true)
|
130
|
+
|
129
131
|
puts "\nRetrieving branch information from gitcycle.\n".green
|
130
132
|
branch = get('branch',
|
131
|
-
'branch[name]' =>
|
133
|
+
'branch[name]' => current_branch,
|
132
134
|
'include' => [ 'repo' ],
|
133
135
|
'create' => 0
|
134
136
|
)
|
@@ -140,7 +142,13 @@ class Gitcycle
|
|
140
142
|
:branch => branch['source']
|
141
143
|
)
|
142
144
|
else
|
143
|
-
puts "
|
145
|
+
puts "\nRetrieving repo information from gitcycle.".green
|
146
|
+
repo = get('repo')
|
147
|
+
|
148
|
+
add_remote_and_fetch(:owner => repo['owner'], :repo => repo['name'])
|
149
|
+
|
150
|
+
puts "\nPulling '#{repo['owner']}/#{current_branch}'.\n".green
|
151
|
+
run("git pull #{repo['owner']} #{current_branch}")
|
144
152
|
end
|
145
153
|
end
|
146
154
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitcycle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 61
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 19
|
10
|
+
version: 0.1.19
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Winton Welsh
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-01
|
18
|
+
date: 2012-02-01 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|