import: fix crash when importing from local git repo

2 jobs for import-for-issuebot in 1 minute and 12 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
failed #52149128
metadata_v0

00:01:10

failed #52149127
test

00:01:12

 
Name Stage Failure
failed
test Test
Using docker image sha256:e1a1ca2c5b7bbf2570961c8ac0d736401df94599e8420295a2b5fde0cd19487f for predefined container...
Pulling docker image registry.gitlab.com/fdroid/ci-images-server:latest ...
Using docker image registry.gitlab.com/fdroid/ci-images-server:latest ID=sha256:77dbb3a55bb9d4cc073f3e384f8dc511f5e6639a653256f355b2aaefe544f220 for build container...
Running on runner-e11ae361-project-40101-concurrent-0 via runner-e11ae361-srm-1518433575-1292aa1a...
Cloning repository...
Cloning into '/builds/eighthave/fdroidserver'...
Checking out a40b79eb as import-for-issuebot...
fatal: reference is not a tree: a40b79eb9de7df126e237a5a6314b9a97b979eab
ERROR: Job failed: exit code 1
failed
metadata_v0 Test
Using docker image sha256:96ca2c3ed54c280b93d4610fc0b3f0454d0fb5b0345736a01787c3c5b7f6d971 for predefined container...
Pulling docker image registry.gitlab.com/fdroid/ci-images-server:latest ...
Using docker image registry.gitlab.com/fdroid/ci-images-server:latest ID=sha256:77dbb3a55bb9d4cc073f3e384f8dc511f5e6639a653256f355b2aaefe544f220 for build container...
Running on runner-72989761-project-40101-concurrent-0 via runner-72989761-srm-1518433619-c99eb52a...
Cloning repository...
Cloning into '/builds/eighthave/fdroidserver'...
Checking out a40b79eb as import-for-issuebot...
fatal: reference is not a tree: a40b79eb9de7df126e237a5a6314b9a97b979eab
ERROR: Job failed: exit code 1