mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 01:45:55 +08:00
git rm: Add some more logs
This commit is contained in:
@ -78,7 +78,7 @@ int match_cb(const char *path, const char *spec, void *payload)
|
||||
UNUSED(spec);
|
||||
UNUSED(payload);
|
||||
|
||||
gj_log_internal("Match: %s\n", path);
|
||||
gj_log_internal("Add Match: %s\n", path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -132,6 +132,7 @@ int rm_match_cb(const char *path, const char *spec, void *payload)
|
||||
strcat(full_path, "/"); // FIXME: Will not work on windows!
|
||||
strcat(full_path, path);
|
||||
|
||||
gj_log_internal("Removing File: %s\n", full_path);
|
||||
int err = remove(full_path);
|
||||
if (err != 0)
|
||||
{
|
||||
@ -503,8 +504,6 @@ int gj_git_pull(const char *git_base_path, const char *author_name, const char *
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
// FIXME: Do not make a merge commit when not required!
|
||||
|
||||
err = git_remote_lookup(&remote, repo, "origin");
|
||||
if (err < 0)
|
||||
goto cleanup;
|
||||
|
Reference in New Issue
Block a user