topgit breaks git trees if later purged
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
ProcVersionSign
Uname: Linux 2.6.32-21-generic x86_64
Architecture: amd64
Date: Fri Apr 16 20:33:23 2010
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: topgit
Related branches
Changed in topgit (Debian): | |
status: | Unknown → Confirmed |
Changed in topgit (Debian): | |
status: | Confirmed → Fix Released |
The attached patch was constructed based on the patch in the Debian bug.