Crash when committing a directory in place of a symlink

Bug #598350 reported by Alexey Kotlyarov
6
This bug affects 1 person
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/another-file
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
ProcVersionSignature: Ubuntu 2.6.32-23.37-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-23-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri Jun 25 08:51:31 2010
ProcEnviron:
 LANGUAGE=ru_RU:ru:en
 PATH=(custom, user)
 LANG=ru_RU.utf8
 SHELL=/bin/bash
SourcePackage: gitg

Revision history for this message
Alexey Kotlyarov (koterpillar) wrote :
Revision history for this message
Christoph Buchner (bilderbuchi) wrote :

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.

Changed in gitg (Ubuntu):
status: New → Confirmed
Revision history for this message
Christoph Buchner (bilderbuchi) wrote :

forgot to add: Using gitg 0.0.8 on Ubuntu 10.10 32bit

Revision history for this message
Christoph Buchner (bilderbuchi) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.