Package: dgit
Version: 9.12
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Dear Maintainer,

I found that sometimes dgit setup-gitattributes fails to set up the
attributes on the first run in a freshly cloned repo:

    $ git clone https://gitlab.apertis.org/pkg/php7.3
    Cloning into 'php7.3'...
    remote: Enumerating objects: 316, done.
    remote: Counting objects: 100% (316/316), done.
    remote: Compressing objects: 100% (308/308), done.
    remote: Total 21825 (delta 18), reused 93 (delta 7), pack-reused 21509
    Receiving objects: 100% (21825/21825), 26.28 MiB | 11.47 MiB/s, done.
    Resolving deltas: 100% (4136/4136), done.
    Updating files: 100% (20246/20246), done.
    $ cd php7.3
    $ dgit -D setup-gitattributes
    | git rev-parse --show-toplevel
    => `/tmp/php7.3'
    | git config -z --get-regexp --local '.*'
    | git config -z --get-regexp --local '.*'
    | git config -z --get-regexp --global '.*'
    | git config -z --get-regexp --system '.*'
    $ cat .git/info/attributes
    $ ls -l .git/info/attributes
    -rw-rw-r-- 1 andrewsh andrewsh 0 Jan 29 17:38 .git/info/attributes
    $ dgit -D setup-gitattributes
    | git rev-parse --show-toplevel
    => `/tmp/php7.3'
    | git config -z --get-regexp --local '.*'
    | git config -z --get-regexp --local '.*'
    | git config -z --get-regexp --global '.*'
    | git config -z --get-regexp --system '.*'
    is_gitattrs_setup: found nothing
    $ cat .git/info/attributes
    *   dgit-defuse-attrs
    [attr]dgit-defuse-attrs     -text -eol -crlf -ident -filter 
-working-tree-encoding
    # ^ see GITATTRIBUTES in dgit(7) and dgit setup-new-tree in dgit(1)

- -- 
Cheers,
  Andrej

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQSD3NF/RLIsyDZW7aHoRGtKyMdyYQUCYBQ6QwAKCRDoRGtKyMdy
YZfQAQCkvpaUdij4d4eBN/hgktIJoE8L8Ld5vZdCzAaAbCdlxgD/dWy2iHr5kxKx
B2zBbI6pX5C2p7E/KDkHxX56zhylBwE=
=g+3O
-----END PGP SIGNATURE-----

Reply via email to