Crash when committing a directory in place of a symlink
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gitg (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gitg
I had a symlink to a folder under Git, decided to replace it with a directory (with files) by the same name. Gitg crashed.
How to reproduce:
$ git init
$ mkdir directory
$ touch directory/file
$ ln -s directory symlink
$ git commit -a -m first
$ rm symlink
$ mkdir symlink
$ touch symlink/
Then start Gitg, and in the Commit tab stage another-file for commiting. Crash.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gitg 0.0.5-1
ProcVersionSign
Uname: Linux 2.6.32-23-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Fri Jun 25 08:51:31 2010
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=ru_RU.utf8
SHELL=/bin/bash
SourcePackage: gitg
I think you're missing a "git add ." after the symlinking step. Otherwise, I got a still-empty repo. commit -a only adds already tracked files.
Regardless, I can confirm this behaviour. It does not happen when you do it via command-line git.
gitg says
** ERROR **: Update index for stage failed
aborting...
upon crashing.