RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 610829 - git add <new-file> and git rm <file-in-repo> destroy repo when add empty file
Summary: git add <new-file> and git rm <file-in-repo> destroy repo when add empty file
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: git
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Adam Tkac
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-02 14:27 UTC by Nikola Pajkovsky
Modified: 2014-02-02 22:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-07 09:27:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nikola Pajkovsky 2010-07-02 14:27:30 UTC
git has a problem when you add new file into repo and other one was deleted. 


Version-Release number of selected component (if applicable):
$ rpm -q git
git-1.7.1-1.el6.x86_64

How reproducible bug:
mkdir git-bug
cd git-bug
git init
touch a b c
git add a b c
git commit -m "Trala la la la Tra lala Lala"
echo "muhuhahaHAAHAAAAA" > a
git add a
touch d
git add d
git rm c
git status

Working situation: 
mkdir git-bug
cd git-bug
git init
touch a b c
git add a b c
git commit -m "Trala la la la Tra lala Lala"
echo "muhuhahaHAAHAAAAA" > a
git add a
touch d
*echo "why? whyyyy?? whyyyyyyyy????" > d*
git add d
git rm c
git status

Actual results:
# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#	modified:   a
#	renamed:    c -> d
#

Expected results:
# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#	modified:   a
#       new file:   d
#	deleted:    c
#


Note You need to log in before you can comment on or make changes to this bug.