chiark / gitweb /
Cope when cloning suite which doesn't receive uploads, like testing.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Oct 2016 21:04:22 +0000 (21:04 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Oct 2016 22:46:35 +0000 (22:46 +0000)
commit4723806663cc562af68cb68a9f0c18548942bad8
tree7b643993f43a2e975ae1742c0d0afbd5d72c6ca3
parent6d8d98477ba6f9046d3e3f7561777ecd7ead1e23
Cope when cloning suite which doesn't receive uploads, like testing.

If $lastpush_hash is '', it means that the dgit git server does not
have the suite branch.  That can even happen if the current version in
the suite was a .dsc with a Dgit field, if an in-archive copy moved
the .dsc from whereever it was uploaded.

Do not crash in this situation.  Instead, give the user the Dgit hash
(and maybe pseudomerge it with the user's history - sigh).

There is still a possible problem: maybe the referenced commit is on
another branch.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
dgit