git-utils 0.5.7 → 0.5.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 81b88abd3d3658dc2e511f7d74e5d0539cb92b47
4
- data.tar.gz: 71eee7e0a6e6d8bc8fa43ea71ca0a30c4ac107c5
3
+ metadata.gz: 865ddb9facc2194894dd11204c25524e97699025
4
+ data.tar.gz: 556b36d014cea2bb18826c921cb3667b2853f5d1
5
5
  SHA512:
6
- metadata.gz: 985a5cedcc942611374cf5c64100ebc038d237d61f4c970458ac5b90923e61bbbb61569d28c643f4a3feb4764a48be46b21bf531a4f4295ebf2be17128d1340e
7
- data.tar.gz: ff4a7ce714a1dbf0a4f4f9615e15b0c91aa66ae96631a2fd7255a8760f39b560923a6ab4aacf0a6008b6334a0c55def2e23dc03e464f4febc8ab7218b6e2b0cd
6
+ metadata.gz: 0d5b3eb4c2947b6f5afcb507c0434f4d16b54c141cb7c975315bfcc52ec538fdca27ce3645bfeb070604a106315b4ec06fde0a81332b43d1428f4e244cd3ea5b
7
+ data.tar.gz: fd1e6cfb43bcf5b825bd97c2adfc6a95bcbe831728f75b56c394fce259ac634e7dc823a153aa69332df989aa1f963e3008c6aa3a5380e85c405f72c19a99eb86
@@ -13,7 +13,7 @@ class PushBranch < Command
13
13
 
14
14
  # Returns a command appropriate for executing at the command line
15
15
  def cmd
16
- c = ["git push origin #{current_branch}"]
16
+ c = ["git push --set-upstream origin #{current_branch}"]
17
17
  c << argument_string(unknown_options) unless unknown_options.empty?
18
18
  c.join(" ")
19
19
  end
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Utils
3
- VERSION = "0.5.7"
3
+ VERSION = "0.5.8"
4
4
  end
5
5
  end
@@ -8,10 +8,12 @@ describe PushBranch do
8
8
  end
9
9
  subject { command }
10
10
 
11
- its(:cmd) { should match /git push origin #{command.current_branch}/ }
11
+ its(:cmd) do
12
+ should match /git push --set-upstream origin #{command.current_branch}/
13
+ end
12
14
 
13
15
  describe "command-line command" do
14
16
  subject { `bin/git-push-branch --debug` }
15
- it { should match /git push origin/ }
17
+ it { should match /git push --set-upstream origin/ }
16
18
  end
17
19
  end
@@ -12,7 +12,7 @@ describe Switch do
12
12
  its(:cmd) { should match /git checkout #{command.other_branch}/ }
13
13
 
14
14
  describe "command-line command" do
15
- subject { `bin/git-push-branch --debug` }
16
- it { should match /git push origin/ }
15
+ subject { `bin/git-switch example --debug` }
16
+ it { should match /git checkout/ }
17
17
  end
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-11 00:00:00.000000000 Z
11
+ date: 2013-11-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Add some Git utilities
14
14
  email:
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  requirements: []
98
98
  rubyforge_project:
99
- rubygems_version: 2.0.3
99
+ rubygems_version: 2.0.6
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: See the README for full documentation