We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb6c568 commit 242d172Copy full SHA for 242d172
lib/ohloh_scm/git/scm.rb
@@ -43,8 +43,10 @@ def fetch_new_commits(remote_scm)
43
end
44
45
def clone_and_create_tracking_branch(remote_scm)
46
- run "rm -rf '#{url}'"
47
- run "git clone -q -n '#{remote_scm.url}' '#{url}'"
+ unless status.scm_dir_exist?
+ run "rm -rf '#{url}'"
48
+ run "git clone -q -n '#{remote_scm.url}' '#{url}'"
49
+ end
50
create_tracking_branch(remote_scm.branch_name) # ensure the correct branch exists locally
51
clean_and_checkout_branch # switch to the correct branch
52
lib/ohloh_scm/version.rb
@@ -2,7 +2,7 @@
2
3
module OhlohScm
4
module Version
5
- STRING = '3.0.2'
+ STRING = '3.0.3'
6
GIT = '2.17.1'
7
SVN = '1.9.7'
8
CVSNT = '2.5.04'
0 commit comments