[Bug 1536434] [NEW] Git does not display filenames in status, even if it's one file on multiple subdirectory path

Bartłomiej Żogała 1536434 at bugs.launchpad.net
Thu Jan 21 01:56:12 UTC 2016


Public bug reported:

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 at 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 at XPS13:~/Dane/pentest/whitepapers/sql$ ls
Outofband-SQL-injection-slides.pdf
nusch at XPS13:~/Dane/pentest/whitepapers/sql$ git add Outofband-SQL-injection-slides.pdf
nusch at 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 at XPS13:~/Dane/pentest/whitepapers/sql$ cd ..
nusch at XPS13:~/Dane/pentest/whitepapers$ cd ..
nusch at 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)

** Affects: git (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug wily

** Description changed:

  nusch at XPS13:~/Dane/pentest/whitepapers/sql$ git status
  On branch master
  Untracked files:
-   (use "git add <file>..." to include in what will be committed)
+   (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 at XPS13:~/Dane/pentest/whitepapers/sql$ ls
  Outofband-SQL-injection-slides.pdf
- nusch at XPS13:~/Dane/pentest/whitepapers/sql$ git add Outofband-SQL-injection-slides.pdf 
+ nusch at XPS13:~/Dane/pentest/whitepapers/sql$ git add Outofband-SQL-injection-slides.pdf
  nusch at XPS13:~/Dane/pentest/whitepapers/sql$ git status
  On branch master
  Changes to be committed:
-   (use "git reset HEAD <file>..." to unstage)
+   (use "git reset HEAD <file>..." to unstage)
  
-         new file:   Outofband-SQL-injection-slides.pdf
- 
- nusch at XPS13:~/Dane/pentest/whitepapers/sql$ ubuntu-bug git
- git                   git-arch              git-bzr               git-cvs               git-dpm               git-flow              git-hub               gitk                  git-merge-changelog   git-reintegrate       git-repair            gitso
- git2cl                git-big-picture       git-cola              git-daemon-run        git-el                git-ftp               github-backup         gitmagic              git-notifier          git-remote-bzr        git-restore-mtime     gitstats
- git-all               git-buildpackage      git-core              git-daemon-sysvinit   git-email             gitg                  gitinspector          git-man               gitolite3             git-remote-gcrypt     git-review            git-svn
- git-annex             git-buildpackage-rpm  git-crypt             git-doc               git-extras            git-gui               gitit                 git-mediawiki         gitpkg                git-remote-hg         git-sh                gitweb
- nusch at XPS13:~/Dane/pentest/whitepapers/sql$ ubuntu-bug git
- nusch at XPS13:~/Dane/pentest/whitepapers/sql$ Utworzono nowe okno w istniejącej sesji przeglądarki.
- nusch at XPS13:~/Dane/pentest/whitepapers/sql$ 
+  new file:   Outofband-SQL-injection-slides.pdf
  nusch at XPS13:~/Dane/pentest/whitepapers/sql$ cd ..
  nusch at XPS13:~/Dane/pentest/whitepapers$ cd ..
  nusch at XPS13:~/Dane/pentest$ git status
  On branch master
  Changes to be committed:
-   (use "git reset HEAD <file>..." to unstage)
+   (use "git reset HEAD <file>..." to unstage)
  
-         new file:   whitepapers/sql/Outofband-SQL-injection-slides.pdf
+  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)

** Description changed:

+ 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 at 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 at XPS13:~/Dane/pentest/whitepapers/sql$ ls
  Outofband-SQL-injection-slides.pdf
  nusch at XPS13:~/Dane/pentest/whitepapers/sql$ git add Outofband-SQL-injection-slides.pdf
  nusch at 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 at XPS13:~/Dane/pentest/whitepapers/sql$ cd ..
  nusch at XPS13:~/Dane/pentest/whitepapers$ cd ..
  nusch at 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)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to git in Ubuntu.
https://bugs.launchpad.net/bugs/1536434

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

Status in git package in Ubuntu:
  New

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 at 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 at XPS13:~/Dane/pentest/whitepapers/sql$ ls
  Outofband-SQL-injection-slides.pdf
  nusch at XPS13:~/Dane/pentest/whitepapers/sql$ git add Outofband-SQL-injection-slides.pdf
  nusch at 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 at XPS13:~/Dane/pentest/whitepapers/sql$ cd ..
  nusch at XPS13:~/Dane/pentest/whitepapers$ cd ..
  nusch at 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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/git/+bug/1536434/+subscriptions



More information about the foundations-bugs mailing list