Skip to contentSkip to conversation

git status bug problem.

DISCUSSION Mikael Magnusson 3 participants 5 messages Jun 15, 2016 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

I can't seem to get git status to return that a file has changed. I think my environment is hosed up, but I don't know for sure. My machine is ubuntu 8.04 with kernel 2.6.24-17-generic #1 SMPx86_64 GNU/Linux . I set up a test repo and it added one file to it , modified the file and saved . Doing git status returns nothing, git gui finds no modified files. Doing git add * finds the modified file and stages it. I can get someone a strace for the git status it is only about a 1 page.

Thanks,
Ben

#2 lore raw
Quoted 8 lines · Ben Bennett

I can't seem to get git status to return that a file has changed. I think my environment is hosed up, but I don't know for sure. My machine is ubuntu 8.04 with kernel 2.6.24-17-generic #1 SMPx86_64 GNU/Linux . I set up a test repo and it added one file to it , modified the file and saved . Doing git status returns nothing, git gui finds no modified files. Doing git add * finds the modified file and stages it. I can get someone a strace for the git status it is only about a 1 page.

You should have got something like the following:

# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# new file: bar
#
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
#
# modified: bar
#

BTW. you have made initial commit, did you?

Signature · 3 lines
Jakub Narebski
Poland
ShadeHawk on #git
#3 lore raw

I made the initial commit. git-gui doesn't return anything either. Something tells me it isn't getting the cwd. Add git status * it will work correctly , but git-gui doesn't give anything.

somewhere@something:~/git_test$ git status
# On branch master
nothing to commit (working directory clean)
somewhere@something:~/git_test$ git status *
# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#	modified:   test/test2.txt
#
Thanks,
Ben
On Mon, Jun 23, 2008 at 8:47 AM, Jakub Narebski <[email protected]> wrote:
Quoted 32 lines
Quoted 8 lines · Ben Bennett

I can't seem to get git status to return that a file has changed. I think my environment is hosed up, but I don't know for sure. My machine is ubuntu 8.04 with kernel 2.6.24-17-generic #1 SMPx86_64 GNU/Linux . I set up a test repo and it added one file to it , modified the file and saved . Doing git status returns nothing, git gui finds no modified files. Doing git add * finds the modified file and stages it. I can get someone a strace for the git status it is only about a 1 page.

You should have got something like the following:

# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# new file: bar
#
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
#
# modified: bar
#

BTW. you have made initial commit, did you?

--
Jakub Narebski
Poland
ShadeHawk on #git

#4 lore raw

2008/6/24 Ben Bennett <[email protected]>:

Quoted 8 lines

I made the initial commit. git-gui doesn't return anything either. Something tells me it isn't getting the cwd. Add git status * it will work correctly , but git-gui doesn't give anything.

somewhere@something:~/git_test$ git status
# On branch master
nothing to commit (working directory clean)
Quoted 9 lines
somewhere@something:~/git_test$ git status *
# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#       modified:   test/test2.txt
#
Thanks,
Ben

The file isn't by chance matched by a git ignore rule somewhere? An easy way to check is to try and git add the file, it will say you have to use -f if it does.

Signature · 1 line
Mikael Magnusson
#5 lore raw

Nope, it was an blank test repo .
Did git init
git add *
(which added a few text files)
did git commit -m "just a test"
Modified the file , did git status and I get nothing . git-gui displays nothing . I think I hosed up something , either some dynamic lib or something.
doing git status * gives me the files.

Quoted 26 lines · Mikael Magnusson

2008/6/24 Ben Bennett <[email protected]>:

Quoted 8 lines

I made the initial commit. git-gui doesn't return anything either. Something tells me it isn't getting the cwd. Add git status * it will work correctly , but git-gui doesn't give anything.

somewhere@something:~/git_test$ git status
# On branch master
nothing to commit (working directory clean)
Quoted 9 lines
somewhere@something:~/git_test$ git status *
# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#       modified:   test/test2.txt
#
Thanks,
Ben

The file isn't by chance matched by a git ignore rule somewhere? An easy way to check is to try and git add the file, it will say you have to use -f if it does.

--
Mikael Magnusson