Package: git
Version: 1:1.7.1-1
Severity: normal

Despite what git-read-tree(1) says, the syntax for sparse-checkout
appears to be much stricter for directories, requiring a trailing slash
and no leading slash.

Here's a newly-cloned copy of git:

  $ git config core.sparsecheckout true

  $ echo 'perl' > .git/info/sparse-checkout
  $ git read-tree -m -u HEAD
  error: Sparse checkout leaves no entry on working directory

  $ echo '/perl' > .git/info/sparse-checkout 
  $ git read-tree -m -u HEAD
  error: Sparse checkout leaves no entry on working directory

  $ echo '/perl/' > .git/info/sparse-checkout 
  $ git read-tree -m -u HEAD
  error: Sparse checkout leaves no entry on working directory

  $ echo 'perl/' > .git/info/sparse-checkout 
  $ git read-tree -m -u HEAD
  $ ls
  perl


It also appears to always be anchored at the root for directories,
unlike for files:

  $ echo 'po/' > .git/info/sparse-checkout
  $ git read-tree -m -u HEAD
  error: Sparse checkout leaves no entry on working directory

  $ echo 'git-gui/po/' > .git/info/sparse-checkout
  $ git read-tree -m -u HEAD
  $ ls
  git-gui


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.33 (SMP w/1 CPU core)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages git depends on:
ii  libc6                   2.10.2-9         Embedded GNU C Library: Shared lib
ii  libcurl3-gnutls         7.20.1-2         Multi-protocol file transfer libra
ii  libdigest-sha1-perl     2.12-1           NIST SHA-1 message digest algorith
ii  liberror-perl           0.17-1           Perl module for error/exception ha
ii  libexpat1               2.0.1-7          XML parsing C library - runtime li
ii  perl-modules            5.10.1-12        Core Perl modules
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages git recommends:
ii  less                          436-1      pager program similar to more
ii  openssh-client [ssh-client]   1:5.5p1-4  secure shell (SSH) client, for sec
ii  patch                         2.6-2      Apply a diff file to an original
ii  rsync                         3.0.7-2    fast remote file copy program (lik

Versions of packages git suggests:
pn  git-arch                      <none>     (no description available)
ii  git-cvs                       1:1.7.1-1  fast, scalable, distributed revisi
pn  git-daemon-run                <none>     (no description available)
pn  git-doc                       <none>     (no description available)
ii  git-email                     1:1.7.1-1  fast, scalable, distributed revisi
pn  git-gui                       <none>     (no description available)
ii  git-svn                       1:1.7.1-1  fast, scalable, distributed revisi
ii  gitk                          1:1.7.1-1  fast, scalable, distributed revisi
pn  gitweb                        <none>     (no description available)

-- no debconf information



-- 
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