go-git icon indicating copy to clipboard operation
go-git copied to clipboard

AddGlob("*") includes the .git folder into the commit

Open rustyx opened this issue 5 years ago • 2 comments
trafficstars

AddGlob("*") includes the .git folder into the commit, completely breaking the repo.

AddGlob("*") should skip the .git folder.

rustyx avatar Dec 11 '19 09:12 rustyx

also , maybe unrelated , but AddGlob(".") fails on windows most of the time. from testing it looks like whenever there's at least one previous commit, i'm getting some weird error and its unable to add any file at all

rnag avatar Dec 11 '19 15:12 rnag

On Windows AddGlob("*") behaves in the same way for me - it succeeds, but adds everything, including the .git folder into the commit.

rustyx avatar Dec 11 '19 15:12 rustyx