Package: dgit
Version: 0.7
Severity: normal

Dear Maintainer,

I did:
$ dgit clone --new ocaml-estring
$ <pull upstream tree, tarball, made packaging>
$ git commit -a
$ dgit sbuild
$ dgit push --new
canonical suite name for unstable is sid
canonical suite name for unstable is sid
Format `3.0 (quilt)', urgh
checking that ocaml-estring_20130822-1.dsc corresponds to HEAD
dpkg-source: warning: extracting unsigned source package 
(../../../../ocaml-estring_20130822-1.dsc)
dpkg-source: info: extracting ocaml-estring in ocaml-estring-20130822
dpkg-source: info: unpacking ocaml-estring_20130822.orig.tar.xz
dpkg-source: info: unpacking ocaml-estring_20130822-1.debian.tar.gz
Died at /usr/bin/dgit line 484.

The function in question is:
    477 sub mktree_in_ud_from_only_subdir () {
    478     # changes into the subdir
    479     my (@dirs) = <*/.>;
    480     die unless @dirs==1;
    481     $dirs[0] =~ m#^([^/]+)/\.$# or die;
    482     my $dir = $1;
    483     chdir $dir or die "$dir $!";
    484     die if stat '.git';
    485     die $! unless $!==&ENOENT;
    486     runcmd qw(git init -q);
    487     rmtree('.git/objects');
    488     symlink '../../../../objects','.git/objects' or die $!;
    489     runcmd @git, qw(add -Af);
    490     my $tree = cmdoutput @git, qw(write-tree);
    491     $tree =~ m/^\w+$/ or die "$tree ?";
    492     return ($tree,$dir);
    493 }

Not sure why it's trying to create a new git repository, since as far as
I can tell, one will never be able to get to $ dgit push, without having
a local repository already....

Regards,

Dmitrijs.


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