Project is published.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#ifndef GIT_OPS_H
|
||||
#define GIT_OPS_H
|
||||
|
||||
#include "logger.h"
|
||||
|
||||
/* Returns 1 if clone_dir/project/.git exists, 0 otherwise */
|
||||
int git_repo_exists(const char *clone_dir, const char *project);
|
||||
|
||||
/* Clone repo under clone_dir/project using token or password auth */
|
||||
int git_clone(const char *base_url, const char *user,
|
||||
const char *token, const char *password,
|
||||
const char *project, const char *clone_dir,
|
||||
Logger *log);
|
||||
|
||||
/* Pull latest in repo_path */
|
||||
int git_pull(const char *repo_path, Logger *log);
|
||||
|
||||
#endif /* GIT_OPS_H */
|
||||
Reference in New Issue
Block a user