Method: MGit::Repo::SyncHelper.local_bare_git_url

Defined in:
lib/m-git/repo/sync_helper.rb

.local_bare_git_url(path) ⇒ String

生成本地裸库路径

Parameters:

  • repo_name (String)

    仓库名

Returns:

  • (String)

    本地裸库路径



234
235
236
237
238
239
240
# File 'lib/m-git/repo/sync_helper.rb', line 234

def local_bare_git_url(path)
  if File.exist?(path)
    return path
  else
    return nil
  end
end