topgit breaks git trees if later purged

Bug #564616 reported by Emmet Hikory
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
topgit (Debian)
Fix Released
Unknown
topgit (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: topgit

Installing topgit, reading the help in a git tree, and purging topgit results in the git tree being unable to commit due to an unsafe hook being added.

Test Case:
$ mkdir tg-test
$ cd tg-test
$ git init
$ echo 1 > 1
$ git add 1
$ git commit -a -m .
$ sudo apt-get install topgit
$ tg help
$ sudo dpkg -P topgit
$ echo 2 > 2
$ git commit -a -m

Note that in the second case, one is not committing the file "2", but just commiting with no changes. (git add has not been run).

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: topgit 0.8-1
ProcVersionSignature: Ubuntu 2.6.32-21.31-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic x86_64
Architecture: amd64
Date: Fri Apr 16 20:33:23 2010
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: topgit

Related branches

Revision history for this message
Emmet Hikory (persia) wrote :
Changed in topgit (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Emmet Hikory (persia) wrote :

The attached patch was constructed based on the patch in the Debian bug.

Revision history for this message
Martin Pitt (pitti) wrote :

Syntax error in changelog, closing manually.

 topgit (0.8-1ubuntu1) lucid; urgency=low
 .
   * Apply patch from Carsten Hey to conditionally execute hook
     only if topgit is actually available on the system (LP: 564616)

Changed in topgit (Ubuntu):
status: Triaged → Fix Released
Changed in topgit (Debian):
status: Unknown → Confirmed
Changed in topgit (Debian):
status: Confirmed → Fix Released
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.