Package: git
Version: 1:1.8.4.1-1
Tags: upstream
Severity: minor
Justification: confusing

Suppose I run

  git clone https://gerrit.googlesource.com/gerrit
  cd gerrit
  git checkout 5cf89bc928f2efe08d2ab6c29d0ef5a717aac8ac
  echo hi >plugins/commit-message-length-validator/greeting
  cd plugins/commit-message-length-validator

and then (a)

  git add .

or (b)

  git add *

In case (a), "git add" exits with zero status, nothing is added, and
there is no message.  In case (b), I get

  fatal: Path 'plugins/commit-message-length-validator/greeting' is \
  in submodule 'plugins/commit-message-length-validator'

I would have expected something like

  fatal: submodule 'plugins/commit-message-length-validator' is not \
  populated so I cannot add 'greeting' there

Reported by Pilif12p on #git, analysis by m0viefreak.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to