Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:20
erlgit
erlgit-doc.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File erlgit-doc.patch of Package erlgit
diff -Ndurp erlgit/src/git.erl erlgit-doc/src/git.erl --- erlgit/src/git.erl 2016-09-03 23:06:39.224744254 +0300 +++ erlgit-doc/src/git.erl 2016-09-03 23:07:37.879750075 +0300 @@ -92,7 +92,7 @@ init(RepoDir) -> init_cmd(_RepoDir) -> "git init". -%% @throws {unable_to_clone, Reason :: list()}> +%% @throws {unable_to_clone, Reason :: list()} -spec clone(url(), dir()) -> {'ok', string()} | {'error', term()}. clone(RepoURL, RepoPath) -> clone(RepoURL, RepoPath, []). @@ -142,11 +142,12 @@ string_to_remote(X) -> %% %% add git remote to existed repository -spec remote(dir(), url()) -> ok | {error, any()}. --spec remote(dir(), list(), url()) -> ok | {error, any()}. remote(RepoDir, RepoURL) -> remote(RepoDir, "origin", RepoURL). +-spec remote(dir(), list(), url()) -> ok | {error, any()}. + remote(RepoDir, RemoteName, RepoURL) -> sh(remote_add_cmd(RemoteName, RepoURL), [{cd, RepoDir}]).
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor