lib/rim/sync_helper.rb in esr-rim-1.3.2 vs lib/rim/sync_helper.rb in esr-rim-1.3.3
- old
+ new
@@ -37,9 +37,10 @@
if !s.has_branch?(rim_branch) || has_ancestor?(s, branch, s.rev_sha1(rim_branch)) || !has_ancestor?(s, rim_branch, remote_rev)
s.execute("git branch -f #{rim_branch} #{rev}")
branch_sha1 = s.rev_sha1(rim_branch)
end
remote_url = "file://" + @ws_root
+ @logger.debug("Folder for temporary git repositories: #{@rim_path}")
tmpdir = clone_or_fetch_repository(remote_url, module_tmp_git_path(".ws"), "Cloning workspace git...")
RIM::git_session(tmpdir) do |tmp_session|
tmp_session.execute("git reset --hard")
tmp_session.execute("git clean -xdf")
# use -f here to prevent git checkout from checking for untracked files which might be overwritten.