twosigma / twosigma/git-meta

libgit2 removes submodule directories on `reset --hard` and rebase

Open
#508 1 comment 0 reactions 1 assignee Claimed by @novalis View on GitHub
Dominant language
JavaScript
Stars
233
Forks
54
PR merge metrics
No merged PRs in 30d

Description

If you reset- or rebase-to a commit where a submodule doesn't exist, libgit2 will happily throw away unstaged changes. Even if there are no such changes, it's annoying to find submodules unexpectedly closed during a rebase.

`git reset --hard` will give a warning about being unable to remove the submodule's directory
`git rebase` will leave a submodule directory alone

I created https://github.com/twosigma/git-meta/issues/509 to work around the problem

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.