Skip to content

Commit

Permalink
now repositories are reseted to master by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfaller committed Oct 21, 2015
1 parent 040e7c2 commit 37ebeb1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog of Diggit

### Version 2.0.3
* Now repositories are reseted to master by default

### Version 2.0.2
* Fixed analysis cleaning
Expand Down
1 change: 1 addition & 0 deletions lib/dgit/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def clone
def load_repository
fail "Source not cloned #{url}." if new?
@repository = Rugged::Repository.new(folder)
@repository.checkout("master")
end
end

Expand Down
1 change: 0 additions & 1 deletion plugins/analysis/cloc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,5 @@ def run

def clean
db.client['cloc'].find({ source: @source.url }).delete_many
repo.checkout('master')
end
end
1 change: 0 additions & 1 deletion plugins/analysis/tex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def run

def clean
FileUtils.rm_rf(file)
repo.checkout("master")
end

def file
Expand Down

0 comments on commit 37ebeb1

Please sign in to comment.