gitlab_git 5.7.0 → 5.7.1

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: b5088e603e10f36e21e7edc1370141ef8842f12f
4
- data.tar.gz: 72db66f3454550ab74d9775ada217efa1f541343
3
+ metadata.gz: 6647501a87f7c0802212b838f7d5488703aea4b4
4
+ data.tar.gz: 51ea7d3e7e5614923be5c7de606d623087d624a6
5
5
  SHA512:
6
- metadata.gz: 492e1ce6e647724afcbc52baed5fcdffe1adc603532d726d04de0920ed8f0c38028eb08cb74296959fbfa58e0479df03614e44a8e4643646e6d7bdd05eb26609
7
- data.tar.gz: f47b8f22b5c3beed4151fcb25a069600481ee0f2c740fc3798a0cfb4ee44d6bc449c53a85d6b43726300f6e1bc6953dfcc71832fa47a832c8a11db98788400ef
6
+ metadata.gz: e12920bf181ac853331c46efafe394185e2f866c8a5298d03d1604860e63c5b2ac3d77944139aa51524c32fd2b17b9d86d2785b55190be3617706148fc9b8636
7
+ data.tar.gz: 2565a77efc833a0236d5a86ef4d80ac9955669d08f01e4e7a3a18c17a38e99688dc87c54aa9a2d9d2a7a6c0c51a708ac1fb94afe919d702af2ba30d42eaf38f3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.7.0
1
+ 5.7.1
@@ -109,8 +109,8 @@ module Gitlab
109
109
  nil
110
110
  elsif branch_names.length == 1
111
111
  branch_names.first
112
- elsif rugged.head && branch_names.include?(Ref.extract_branch_name(rugged.head.name))
113
- Ref.extract_branch_name(rugged.head.name)
112
+ elsif rugged_head && branch_names.include?(Ref.extract_branch_name(rugged_head.name))
113
+ Ref.extract_branch_name(rugged_head.name)
114
114
  elsif branch_names.include?("master")
115
115
  "master"
116
116
  else
@@ -118,6 +118,12 @@ module Gitlab
118
118
  end
119
119
  end
120
120
 
121
+ def rugged_head
122
+ rugged.head
123
+ rescue Rugged::ReferenceError
124
+ nil
125
+ end
126
+
121
127
  # Archive Project to .tar.gz
122
128
  #
123
129
  # Already packed repo archives stored at
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_git
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.7.0
4
+ version: 5.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Zaporozhets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-05 00:00:00.000000000 Z
11
+ date: 2014-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitlab-linguist