simonthum / git-sync

Safe and simple one-script git synchronization
773 stars 99 forks source link

untracked files #1

Closed twintech closed 11 years ago

twintech commented 11 years ago

Hi Simon,

There is an issue regarding untracked files.

This line:

if [ ! -z "$(git status --short | grep -E '^[^U\?][^U\?]*')" ]

does not match this case:

?? new_file

I'm using ubuntu 12.04 with

poof@app03:~$ git --version git version 1.7.9.5

Is it possible that the grep regexp behaves different from your case?

Regards,

Marius

simonthum commented 11 years ago

Hi,

thanks your your report. I will look into it, likely the regexp is not perfect. I do not use auto-commit new files personally as it is cumbersome to get rid of them later on, so this is probably not heavily tested.

simonthum commented 11 years ago

I just pushed something I believe fixes your issue - please reopen if it does not resolve the issue. Thanks for reporting!