Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git_add(".") throws error #179

Open
cjvanlissa opened this issue Jul 17, 2022 · 0 comments
Open

git_add(".") throws error #179

cjvanlissa opened this issue Jul 17, 2022 · 0 comments

Comments

@cjvanlissa
Copy link

cjvanlissa commented Jul 17, 2022

In a new RStudio project, the following code throws the following error for me:

> gert::git_init()
> writeLines("test", "test.txt")
> gert::git_add(".")
Error in libgit2::git_index_add_all : 
  index_apply_to_wd_diff callback returned -1
> gert::git_ls()
# A tibble: 0 × 4
# … with 4 variables: path <chr>, filesize <dbl>, modified <dttm>, created <dttm>

And session info:

> sessionInfo()
R version 4.2.1 (2022-06-23 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22000)

Matrix products: default

locale:
[1] LC_COLLATE=English_Netherlands.utf8  LC_CTYPE=English_Netherlands.utf8   
[3] LC_MONETARY=English_Netherlands.utf8 LC_NUMERIC=C                        
[5] LC_TIME=English_Netherlands.utf8    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] gert_1.6.0        fansi_1.0.3       utf8_1.2.2        crayon_1.5.1      sys_3.4          
 [6] lifecycle_1.0.1   magrittr_2.0.3    credentials_1.3.2 pillar_1.7.0      rlang_1.0.4      
[11] cli_3.3.0         rstudioapi_0.13   vctrs_0.4.1       ellipsis_0.3.2    tools_4.2.1      
[16] glue_1.6.2        compiler_4.2.1    pkgconfig_2.0.3   askpass_1.1       openssl_2.0.2    
[21] tibble_3.1.7  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant