Skip to content

Commit

Permalink
disable git2 for now
Browse files Browse the repository at this point in the history
until we found the reason for #111
  • Loading branch information
brotzeit committed Jan 19, 2021
1 parent c0d1866 commit 8612524
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 137 deletions.
119 changes: 0 additions & 119 deletions rust_src/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions rust_src/Cargo.toml.in
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ tokio-rustls = "0.14.1"
glutin = { version = "0.24", optional = true }
gleam = { version = "0.6", optional = true }
webrender = { version = "0.61", optional = true }
openssl = { version = "0.10", features = ["vendored"] }
openssl-sys = "0.9"
git2 = "0.13"
# openssl = { version = "0.10", features = ["vendored"] }
# openssl-sys = "0.9"
# git2 = "0.13"

[build-dependencies]
clippy = { version = "*", optional = true }
Expand Down
28 changes: 14 additions & 14 deletions rust_src/src/git.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
use std::path::Path;
// use std::path::Path;

use git2::Repository;
// use git2::Repository;

use lisp_macros::lisp_fn;
// use lisp_macros::lisp_fn;

use lisp::multibyte::LispStringRef;
// use lisp::multibyte::LispStringRef;

#[lisp_fn]
pub fn git_init(path: LispStringRef) -> LispStringRef {
match Repository::init(Path::new(path.to_utf8().as_str())) {
Ok(repo) => path,
Err(e) => {
error!("Error initializing repository {:?}", e);
}
}
}
// #[lisp_fn]
// pub fn git_init(path: LispStringRef) -> LispStringRef {
// match Repository::init(Path::new(path.to_utf8().as_str())) {
// Ok(repo) => path,
// Err(e) => {
// error!("Error initializing repository {:?}", e);
// }
// }
// }

include!(concat!(env!("OUT_DIR"), "/git_exports.rs"));
// include!(concat!(env!("OUT_DIR"), "/git_exports.rs"));
3 changes: 2 additions & 1 deletion rust_src/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ extern crate crossbeam;
extern crate deno;
extern crate deno_core;
extern crate deno_runtime;
extern crate git2;
// TODO: enable after #111 is fixed
// extern crate git2;
extern crate rusty_v8;
extern crate tokio;

Expand Down

0 comments on commit 8612524

Please sign in to comment.