git-up 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/git-up.rb +3 -2
  2. data/lib/git-up/version.rb +1 -1
  3. metadata +8 -8
@@ -51,10 +51,11 @@ class GitUp
51
51
  end
52
52
 
53
53
  def get_repo
54
- git_dir = `git rev-parse --git-dir`
54
+ repo_dir = `git rev-parse --show-toplevel`.chomp
55
55
 
56
56
  if $? == 0
57
- @repo = Grit::Repo.new(File.dirname(git_dir))
57
+ Dir.chdir repo_dir
58
+ @repo = Grit::Repo.new(repo_dir)
58
59
  else
59
60
  raise GitError, "We don't seem to be in a git repository."
60
61
  end
@@ -1,3 +1,3 @@
1
1
  class GitUp
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-up
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,11 +12,11 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2011-09-22 00:00:00.000000000Z
15
+ date: 2012-01-02 00:00:00.000000000Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: thoughtbot-shoulda
19
- requirement: &70234149981220 !ruby/object:Gem::Requirement
19
+ requirement: &70273874197500 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
22
  - - ! '>='
@@ -24,10 +24,10 @@ dependencies:
24
24
  version: '0'
25
25
  type: :development
26
26
  prerelease: false
27
- version_requirements: *70234149981220
27
+ version_requirements: *70273874197500
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: colored
30
- requirement: &70234149980560 !ruby/object:Gem::Requirement
30
+ requirement: &70273874196580 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ! '>='
@@ -35,10 +35,10 @@ dependencies:
35
35
  version: '1.2'
36
36
  type: :runtime
37
37
  prerelease: false
38
- version_requirements: *70234149980560
38
+ version_requirements: *70273874196580
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: grit
41
- requirement: &70234149976500 !ruby/object:Gem::Requirement
41
+ requirement: &70273874195820 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - ! '>='
@@ -46,7 +46,7 @@ dependencies:
46
46
  version: '0'
47
47
  type: :runtime
48
48
  prerelease: false
49
- version_requirements: *70234149976500
49
+ version_requirements: *70273874195820
50
50
  description:
51
51
  email:
52
52
  - aanand.prasad@gmail.com