mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Move git related declarations into their own header file
Also change the name of the enum and make sure all the inner functions get passed the remote transport information. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e21cae2d46
commit
9a22efb97b
8 changed files with 58 additions and 36 deletions
|
@ -13,6 +13,7 @@
|
|||
#include "dive.h"
|
||||
#include "device.h"
|
||||
#include "membuffer.h"
|
||||
#include "git-access.h"
|
||||
#include "version.h"
|
||||
|
||||
/*
|
||||
|
@ -1140,7 +1141,7 @@ static int do_git_save(git_repository *repo, const char *branch, const char *rem
|
|||
if (prefs.cloud_background_sync) {
|
||||
/* now sync the tree with the cloud server */
|
||||
if (strstr(remote, "https://cloud.subsurface-divelog.org")) {
|
||||
sync_with_remote(repo, remote, branch);
|
||||
sync_with_remote(repo, remote, branch, RT_HTTPS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue