ohloh_scm 3.0.4 → 3.0.9
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5aab82af02b5717a415eecf16247abcae42b700a0d3920a6617cce20bab84410
|
4
|
+
data.tar.gz: eaf2c05503b6c270924b48b266f0769228f48a3ed5edb2ec7aa3bd68ed69f09c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8af9883ce37e4dad216ad855cb2849f787b1c2201740c8dba0c55d9879f9e231cfb08709a9dc94d0effae447d074decc03e1cef87d622ad47ef6e6e9b68627ce
|
7
|
+
data.tar.gz: 49a2b6311f499c0e7ef32062836ca8cdf3348f98cd64e1684b94b3cdd06a4de89321090d6b08f23f4fb31addadefd978e3646ff1e74aee412c7f9c8ad8a921a5
|
@@ -23,7 +23,7 @@ module OhlohScm
|
|
23
23
|
# rubocop:enable Metrics/MethodLength
|
24
24
|
|
25
25
|
def export_tag(dest_dir, tag_name)
|
26
|
-
run "cd '#{
|
26
|
+
run "cd '#{url}' && bzr export -r #{tag_name} #{dest_dir}"
|
27
27
|
end
|
28
28
|
|
29
29
|
def export(dest_dir, token = head_token)
|
data/lib/ohloh_scm/git/scm.rb
CHANGED
@@ -27,7 +27,7 @@ module OhlohScm
|
|
27
27
|
|
28
28
|
def clone_or_fetch(remote_scm, callback)
|
29
29
|
callback.update(0, 1)
|
30
|
-
if status.branch?(branch_name)
|
30
|
+
if status.exist? && status.branch?(branch_name)
|
31
31
|
clean_and_checkout_branch # must be on correct branch, but we want to be careful.
|
32
32
|
fetch_new_commits(remote_scm)
|
33
33
|
else
|
@@ -43,7 +43,7 @@ module OhlohScm
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def clone_and_create_tracking_branch(remote_scm)
|
46
|
-
unless status.
|
46
|
+
unless status.exist?
|
47
47
|
run "rm -rf '#{url}'"
|
48
48
|
run "git clone -q -n '#{remote_scm.url}' '#{url}'"
|
49
49
|
end
|
@@ -40,6 +40,10 @@ module OhlohScm
|
|
40
40
|
cat("#{git_commit(commit)}^", diff.path)
|
41
41
|
end
|
42
42
|
|
43
|
+
def git_commit(commit)
|
44
|
+
run("cd #{url} && git svn find-rev r#{commit.token}").strip
|
45
|
+
end
|
46
|
+
|
43
47
|
private
|
44
48
|
|
45
49
|
def open_log_file(opts = {})
|
@@ -72,10 +76,6 @@ module OhlohScm
|
|
72
76
|
run("cd #{url} && git show #{revision}:#{file_path.shellescape}").strip
|
73
77
|
end
|
74
78
|
|
75
|
-
def git_commit(commit)
|
76
|
-
run("cd #{url} && git svn find-rev r#{commit.token}").strip
|
77
|
-
end
|
78
|
-
|
79
79
|
def git_svn_log_cmd
|
80
80
|
"cd #{url} && git svn log"
|
81
81
|
end
|
data/lib/ohloh_scm/version.rb
CHANGED
@@ -5,6 +5,7 @@ require 'spec_helper'
|
|
5
5
|
describe 'Activity' do
|
6
6
|
describe 'log_filename' do
|
7
7
|
it 'should return system tmp dir path' do
|
8
|
+
ENV['OHLOH_SCM_TEMP_FOLDER_PATH'] = nil
|
8
9
|
core = get_core(:git)
|
9
10
|
scm = OhlohScm::Activity.new(core)
|
10
11
|
scm.log_filename.must_equal "#{Dir.tmpdir}/foobar.log"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ohloh_scm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenHub Team at Synopsys
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
The OpenHub source control management library for \
|