Git does not display filenames in status, even if it's one file on multiple subdirectory path

Bug #1536434 reported by Bartłomiej Żogała
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
git (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

As you can see below, on list of untracked files there is './' but to get particular file name I need to ls then git add. Desired behaviour would be listing file name instead './'

nusch@XPS13:~/Dane/pentest/whitepapers/sql$ git status
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)

 ./

nothing added to commit but untracked files present (use "git add" to track)
nusch@XPS13:~/Dane/pentest/whitepapers/sql$ ls
Outofband-SQL-injection-slides.pdf
nusch@XPS13:~/Dane/pentest/whitepapers/sql$ git add Outofband-SQL-injection-slides.pdf
nusch@XPS13:~/Dane/pentest/whitepapers/sql$ git status
On branch master
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

 new file: Outofband-SQL-injection-slides.pdf
nusch@XPS13:~/Dane/pentest/whitepapers/sql$ cd ..
nusch@XPS13:~/Dane/pentest/whitepapers$ cd ..
nusch@XPS13:~/Dane/pentest$ git status
On branch master
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

 new file: whitepapers/sql/Outofband-SQL-injection-slides.pdf

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: git 1:2.5.0-1ubuntu0.1
ProcVersionSignature: Ubuntu 4.2.0-23.28-generic 4.2.6
Uname: Linux 4.2.0-23-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Jan 21 02:52:59 2016
InstallationDate: Installed on 2015-05-08 (257 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
SourcePackage: git
UpgradeStatus: Upgraded to wily on 2015-11-15 (66 days ago)

Revision history for this message
Bartłomiej Żogała (nusch) wrote :
description: updated
description: updated
Revision history for this message
Anders Kaseorg (andersk) wrote :

You can also just run git add DIRECTORY (e.g. git add .) which is equivalent to adding all the (non-ignored) files in the directory.

Changed in git (Ubuntu):
status: New → Invalid
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.