joelmoss-grit 1.1.4 → 1.1.5

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 (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/grit/repo.rb +3 -7
  3. metadata +5 -5
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 1
3
- :patch: 4
3
+ :patch: 5
4
4
  :major: 1
data/lib/grit/repo.rb CHANGED
@@ -65,16 +65,12 @@ module Grit
65
65
  end
66
66
 
67
67
  def self.clone(remote_repo, path, options = {})
68
- epath = File.expand_path(path)
69
-
70
- if epath =~ /\.git$/ || options[:is_bare]
71
- git_options = { :bare => true }
72
- else
73
- git_options = {}
68
+ if path =~ /\.git$/
69
+ options[:bare] = true
74
70
  end
75
71
 
76
72
  git = Git.new(nil)
77
- git.clone(git_options, remote_repo, epath)
73
+ git.clone(options, remote_repo, path)
78
74
 
79
75
  Repo.new(path)
80
76
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joelmoss-grit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Preston-Werner
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-07-13 00:00:00 -07:00
13
+ date: 2009-07-26 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -33,8 +33,8 @@ dependencies:
33
33
  - !ruby/object:Gem::Version
34
34
  version: 1.1.2
35
35
  version:
36
- description: Grit is a Ruby library for extracting information from a git repository in an object oriented manner. This fork has been created for use with Codaset.com.
37
- email: joel@codaset.com
36
+ description: Grit is a Ruby library for extracting information from a git repository in an object oriented manner.
37
+ email: tom@mojombo.com
38
38
  executables: []
39
39
 
40
40
  extensions: []
@@ -80,7 +80,7 @@ files:
80
80
  - lib/open3_detach.rb
81
81
  - LICENSE
82
82
  has_rdoc: false
83
- homepage: http://github.com/joelmoss/grit
83
+ homepage: http://github.com/mojombo/grit
84
84
  post_install_message:
85
85
  rdoc_options:
86
86
  - --charset=UTF-8