Method: GitLib#git_lib_prepare_git_workspace
- Defined in:
- lib/takeltau/git/lib.rb
#git_lib_prepare_git_workspace ⇒ Object
Prepare git workspace.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/takeltau/git/lib.rb', line 6 def git_lib_prepare_git_workspace log.debug 'Prepare git workspace' return false unless configured? %w[project_root_dir] unless git_check_hg log.error 'Not on git hg branch' return false end unless git_check_clean log.error 'No clean git workspace' return false end return true if _git_lib_git_pull_origin_hg log.error 'Unable to pull git workspace' false end |