aharrison24-git-external 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/bin/git-external +7 -2
  2. metadata +4 -5
@@ -122,8 +122,13 @@ def command_status
122
122
  url = config["url"]
123
123
  path = config["path"]
124
124
 
125
- gitBranchExit, gitBranch = execute("cd #{path} && git config \"branch.$(git symbolic-ref HEAD --short).merge\" | sed \"s/refs\\/heads\\///g\"")
126
- gitRemoteExit, gitRemote = execute("cd #{path} && git config \"remote.$(git config \"branch.$(git symbolic-ref HEAD --short).remote\").url\"");
125
+ # Figure out the short name of the current branch
126
+ # This is equivalent to 'git symbolic-ref --short HEAD'
127
+ # but the --short is only available in pretty recent versions of git
128
+ headBranch = `cd #{path} && git symbolic-ref HEAD | sed \"s/refs\\/heads\\///g\"`.chomp
129
+
130
+ gitBranchExit, gitBranch = execute("cd #{path} && git config \"branch.#{headBranch}.merge\" | sed \"s/refs\\/heads\\///g\"")
131
+ gitRemoteExit, gitRemote = execute("cd #{path} && git config \"remote.$(git config \"branch.#{headBranch}.remote\").url\"");
127
132
 
128
133
  if gitBranchExit != 0 && gitRemoteExit != 0
129
134
  puts " ✗ #{path}: exit code #{gitBranchExit}, #{gitRemoteExit}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aharrison24-git-external
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-08 00:00:00.000000000 Z
12
+ date: 2012-06-13 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Extension for git which adds a command providing similar functionality
15
15
  to git submodules but without attaching each module to a single version
@@ -20,8 +20,7 @@ executables:
20
20
  extensions: []
21
21
  extra_rdoc_files: []
22
22
  files:
23
- - !binary |-
24
- YmluL2dpdC1leHRlcm5hbA==
23
+ - bin/git-external
25
24
  homepage: http://github.com/dcestari/git-external
26
25
  licenses: []
27
26
  post_install_message:
@@ -42,7 +41,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
42
41
  version: '0'
43
42
  requirements: []
44
43
  rubyforge_project:
45
- rubygems_version: 1.8.11
44
+ rubygems_version: 1.8.24
46
45
  signing_key:
47
46
  specification_version: 3
48
47
  summary: Git version of an svn:external, an alternative to Git Submodule