FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.43k stars 636 forks source link

ungit should add directories #732

Open hsoc opened 8 years ago

hsoc commented 8 years ago

Instead it gives this error:

Untracked files: (use "git add ..." to include in what will be committed) directory/ nothing added to commit but untracked files present (use "git add" to track)

FredrikNoren commented 8 years ago

@hsoc Not sure I understand 100%. Can you give us steps to reproduce this bug?

hsoc commented 8 years ago

Actually maybe it is not a bug per-ce. This happened when I added a directory from another repo with stale .git info. So basically I moved another repo inside the current one and because it included a dir/.git directory I got the error. Feel free to close the issue if you consider it unrelated. -thank you

Ajedi32 commented 8 years ago

@hsoc So you're nesting one repository inside another? I believe that's called a submodule. And repro steps would be good, since AFAIK ungit is supposed to be able to handle submodules just fine. (Though that isn't a feature I regularly use.)

hsoc commented 8 years ago

So to reproduce my issue I just moved one repo insider another and then pressed commit. I am not an advanced git user so I should probably add submodule first ?