diff --git a/lib/src/bindings/libgit2_bindings.dart b/lib/src/bindings/libgit2_bindings.dart index 90db856..a65a271 100644 --- a/lib/src/bindings/libgit2_bindings.dart +++ b/lib/src/bindings/libgit2_bindings.dart @@ -2467,6 +2467,14 @@ class Libgit2 { /// > to support repositories with the `noop` extension but does want /// > to support repositories with the `newext` extension. /// + /// opts(GIT_OPT_GET_OWNER_VALIDATION, int *enabled) + /// > Gets the owner validation setting for repository + /// > directories. + /// + /// opts(GIT_OPT_SET_OWNER_VALIDATION, int enabled) + /// > Set that repository directories should be owned by the current + /// > user. The default is to validate ownership. + /// /// @param option Option key /// @param ... value to set the option /// @return 0 on success, <0 on failure @@ -26913,6 +26921,8 @@ abstract class git_libgit2_opt_t { static const int GIT_OPT_SET_ODB_LOOSE_PRIORITY = 32; static const int GIT_OPT_GET_EXTENSIONS = 33; static const int GIT_OPT_SET_EXTENSIONS = 34; + static const int GIT_OPT_GET_OWNER_VALIDATION = 35; + static const int GIT_OPT_SET_OWNER_VALIDATION = 36; } /// A data buffer for exporting data from libgit2 @@ -30613,6 +30623,9 @@ abstract class git_error_code { /// < Patch application failed static const int GIT_EAPPLYFAIL = -35; + + /// < The object is not owned by the current user + static const int GIT_EOWNER = -36; } /// Structure to store extra details of the last error that occurred. @@ -32680,13 +32693,13 @@ const int GIT_CREDTYPE_SSH_MEMORY = 64; const int GIT_EMAIL_CREATE_OPTIONS_VERSION = 1; -const String LIBGIT2_VERSION = '1.4.2'; +const String LIBGIT2_VERSION = '1.4.3'; const int LIBGIT2_VER_MAJOR = 1; const int LIBGIT2_VER_MINOR = 4; -const int LIBGIT2_VER_REVISION = 2; +const int LIBGIT2_VER_REVISION = 3; const int LIBGIT2_VER_PATCH = 0; diff --git a/lib/src/util.dart b/lib/src/util.dart index 640d69c..afb5322 100644 --- a/lib/src/util.dart +++ b/lib/src/util.dart @@ -8,7 +8,7 @@ import 'package:libgit2dart/src/bindings/libgit2_bindings.dart'; import 'package:path/path.dart' as path; import 'package:pub_cache/pub_cache.dart'; -const libgit2Version = '1.4.2'; +const libgit2Version = '1.4.3'; final libDir = path.join('.dart_tool', 'libgit2'); String getLibName() { @@ -25,7 +25,7 @@ String getLibName() { return 'libgit2-$libgit2Version.$ext'; } -/// Checks if [File]/[Link] exists for an [uri]. +/// Checks if [File]/[Link] exists for [path]. bool _doesFileExist(String path) { return File(path).existsSync() || Link(path).existsSync(); } diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt index 14ee21d..325acb8 100644 --- a/linux/CMakeLists.txt +++ b/linux/CMakeLists.txt @@ -20,6 +20,6 @@ target_link_libraries(${PLUGIN_NAME} PRIVATE PkgConfig::GTK) # List of absolute paths to libraries that should be bundled with the plugin set(libgit2dart_bundled_libraries - "${CMAKE_CURRENT_SOURCE_DIR}/libgit2-1.4.2.so" + "${CMAKE_CURRENT_SOURCE_DIR}/libgit2-1.4.3.so" PARENT_SCOPE ) diff --git a/linux/libgit2-1.4.2.so b/linux/libgit2-1.4.2.so deleted file mode 100644 index e817112..0000000 Binary files a/linux/libgit2-1.4.2.so and /dev/null differ diff --git a/linux/libgit2-1.4.3.so b/linux/libgit2-1.4.3.so new file mode 100644 index 0000000..d5f1411 Binary files /dev/null and b/linux/libgit2-1.4.3.so differ diff --git a/macos/libgit2-1.4.2.dylib b/macos/libgit2-1.4.2.dylib deleted file mode 100644 index 20219ad..0000000 Binary files a/macos/libgit2-1.4.2.dylib and /dev/null differ diff --git a/macos/libgit2-1.4.3.dylib b/macos/libgit2-1.4.3.dylib new file mode 100644 index 0000000..28a0046 Binary files /dev/null and b/macos/libgit2-1.4.3.dylib differ diff --git a/macos/libgit2dart.podspec b/macos/libgit2dart.podspec index c35095b..235f747 100644 --- a/macos/libgit2dart.podspec +++ b/macos/libgit2dart.podspec @@ -15,7 +15,7 @@ Dart bindings to libgit2. s.source = { :path => '.' } s.source_files = 'Classes/**/*' s.dependency 'FlutterMacOS' - s.vendored_libraries = 'libgit2-1.4.2.dylib' + s.vendored_libraries = 'libgit2-1.4.3.dylib' s.platform = :osx, '10.11' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } diff --git a/windows/CMakeLists.txt b/windows/CMakeLists.txt index 30e081d..a653c8a 100644 --- a/windows/CMakeLists.txt +++ b/windows/CMakeLists.txt @@ -19,6 +19,6 @@ target_link_libraries(${PLUGIN_NAME} PRIVATE flutter flutter_wrapper_plugin) # List of absolute paths to libraries that should be bundled with the plugin set(libgit2dart_bundled_libraries - "${CMAKE_CURRENT_SOURCE_DIR}/libgit2-1.4.2.dll" + "${CMAKE_CURRENT_SOURCE_DIR}/libgit2-1.4.3.dll" PARENT_SCOPE ) diff --git a/windows/libgit2-1.4.2.dll b/windows/libgit2-1.4.3.dll similarity index 61% rename from windows/libgit2-1.4.2.dll rename to windows/libgit2-1.4.3.dll index a062014..19ad281 100644 Binary files a/windows/libgit2-1.4.2.dll and b/windows/libgit2-1.4.3.dll differ