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 +4 -4
- data/VERSION +1 -1
- data/lib/gitlab_git/repository.rb +8 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6647501a87f7c0802212b838f7d5488703aea4b4
|
4
|
+
data.tar.gz: 51ea7d3e7e5614923be5c7de606d623087d624a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e12920bf181ac853331c46efafe394185e2f866c8a5298d03d1604860e63c5b2ac3d77944139aa51524c32fd2b17b9d86d2785b55190be3617706148fc9b8636
|
7
|
+
data.tar.gz: 2565a77efc833a0236d5a86ef4d80ac9955669d08f01e4e7a3a18c17a38e99688dc87c54aa9a2d9d2a7a6c0c51a708ac1fb94afe919d702af2ba30d42eaf38f3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.7.
|
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
|
113
|
-
Ref.extract_branch_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.
|
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-
|
11
|
+
date: 2014-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gitlab-linguist
|