ohloh_scm 3.0.4 → 3.0.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.
- checksums.yaml +4 -4
- data/lib/ohloh_scm/git/scm.rb +1 -1
- data/lib/ohloh_scm/version.rb +1 -1
- data/spec/ohloh_scm/activity_spec.rb +1 -0
- data/spec/ohloh_scm/git/scm_spec.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b11f981c7254d3f740cc89cf98c8214622f5eb971a191a71fb8eea4c01b5c434
|
4
|
+
data.tar.gz: 10729adb8d48eb1e19daaba54f70bf8f13679f023875b9d001d12f470f5cee99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcbac1368d1c58e7aa8a18473c1893d5438025c31e7caff8da4621b63c3f02272d5ac3742a4851ed89aa199351cfb4390638aa0387639030a1002417dd39c6da
|
7
|
+
data.tar.gz: 1cbc4944d0b7345d5613f4a1f9d4bfd61287513f87d808bc2a03eef901d902dcdddcc8ae8103db60b7236e8760af307e0bf8de8b4dbb2435668ff032e6b2fbf6
|
data/lib/ohloh_scm/git/scm.rb
CHANGED
@@ -58,8 +58,8 @@ module OhlohScm
|
|
58
58
|
run "cd '#{url}' && git clean -f -d -x"
|
59
59
|
return unless status.branch?(branch_name)
|
60
60
|
|
61
|
+
run "cd '#{url}' && git reset --hard HEAD"
|
61
62
|
run "cd '#{url}' && git checkout #{branch_name} --"
|
62
|
-
run "cd '#{url}' && git reset --hard heads/#{branch_name} --"
|
63
63
|
end
|
64
64
|
|
65
65
|
def create_tracking_branch(branch_name)
|
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"
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
+
require 'byebug'
|
2
3
|
|
3
4
|
describe 'Git::Scm' do
|
4
5
|
it 'must pull git repository' do
|
@@ -26,6 +27,7 @@ describe 'Git::Scm' do
|
|
26
27
|
remote_master_branch_sha = `cd #{dest_dir} && git rev-parse origin/master`
|
27
28
|
master_branch_sha = `cd #{dest_dir} && git rev-parse master`
|
28
29
|
test_branch_sha = `cd #{dest_dir} && git rev-parse test`
|
30
|
+
byebug
|
29
31
|
|
30
32
|
master_branch_sha.wont_equal test_branch_sha
|
31
33
|
master_branch_sha.must_equal remote_master_branch_sha
|
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.5
|
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: 2019-
|
11
|
+
date: 2019-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
The OpenHub source control management library for \
|