Skip to content

Commit

Permalink
Add missing clone
Browse files Browse the repository at this point in the history
  • Loading branch information
TaYaKi71751 committed Jan 4, 2024
1 parent a0952de commit 87b5fbd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/component/git/git_bookmark.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'dart:io';

import 'package:path_provider/path_provider.dart';
import 'package:sqflite/sqflite.dart';
import 'package:violet/util/git.dart';

class BookmarkGroupKeyVal {
int? id;
Expand Down Expand Up @@ -38,6 +39,8 @@ class GitBookmark {
if (await Directory(gitPath).exists()) {
await Directory(gitPath).delete(recursive: true);
}
BookmarkGit git = BookmarkGit();
await git.clone(gitPath);
String getRelatedPath(String absolutePath) {
return absolutePath
.replaceAll(gitPath, '')
Expand Down

0 comments on commit 87b5fbd

Please sign in to comment.