Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
git_borg_linker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LBMC
Hub
git_borg_linker
Commits
9b342d7d
Commit
9b342d7d
authored
1 year ago
by
nfontrod
Browse files
Options
Downloads
Patches
Plain Diff
src/clone.rs: update clone to avoid a borg init before cheking if the remote path is ok
parent
667e17d0
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/clone.rs
+3
-1
3 additions, 1 deletion
src/clone.rs
with
3 additions
and
1 deletion
src/clone.rs
+
3
−
1
View file @
9b342d7d
...
...
@@ -54,7 +54,7 @@ pub fn get_borg_absolute_folder() -> PathBuf {
p
}
/// Check if the input remote dir
/// Check if the input remote dir
contains archives defined in git history
fn
check_remote_dir
(
url
:
&
PathBuf
,
adress
:
&
str
)
{
let
archives
=
pull
::
get_archive_list
(
&
url
,
&
adress
);
if
archives
.len
()
==
0
{
...
...
@@ -65,6 +65,8 @@ fn check_remote_dir(url: &PathBuf, adress: &str) {
);
exit
(
1
);
}
let
git_commits
=
pull
::
get_git_commits
();
pull
::
check_archives
(
&
git_commits
,
&
archives
);
}
/// Create a push the tar achive on the selected remote path
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment