Comment 1 for bug 1730778

Revision history for this message
Nish Aravamudan (nacc) wrote :

Also affects: lockfile-progs

$ git ubuntu import lockfile-progs --no-push
11/08/2017 13:55:28 - INFO:Ubuntu Server Team importer v0.6.2
11/08/2017 13:55:28 - INFO:Using git repository at /tmp/tmp5m3kpatk
11/08/2017 13:55:30 - ERROR:Command exited 128: git fetch pkg
11/08/2017 13:55:30 - ERROR:stdout:
11/08/2017 13:55:30 - ERROR:stderr: fatal: could not read Username for 'https://git.launchpad.net': terminal prompts disabled

11/08/2017 13:55:31 - ERROR:Command exited 128: git fetch pkg "refs/tags/*:refs/tags/importer/*"
11/08/2017 13:55:31 - ERROR:stdout:
11/08/2017 13:55:31 - ERROR:stderr: fatal: could not read Username for 'https://git.launchpad.net': terminal prompts disabled

11/08/2017 13:55:36 - INFO:Importing patches-unapplied 0.1.11-0.1 to debian/lenny
Traceback (most recent call last):
  File "/snap/git-ubuntu/328/lib/python3.6/site-packages/gitubuntu/importer.py", line 1397, in import_publishes
    ubuntu_sinfo=ubuntu_sinfo,
  File "/snap/git-ubuntu/328/lib/python3.6/site-packages/gitubuntu/importer.py", line 1008, in import_unapplied_spi
    spi.dsc_pathname
  File "/snap/git-ubuntu/328/lib/python3.6/site-packages/gitubuntu/importer.py", line 709, in import_patches_unapplied_tree
    import_tree_hash = dsc_to_tree_hash(repo, dsc_pathname)
  File "/snap/git-ubuntu/328/lib/python3.6/site-packages/gitubuntu/importer.py", line 118, in dsc_to_tree_hash
    return repo.dir_to_tree(extracted_dir)
  File "/snap/git-ubuntu/328/lib/python3.6/site-packages/gitubuntu/git_repository.py", line 1566, in dir_to_tree
    top_tree_object=tree,
  File "/snap/git-ubuntu/328/lib/python3.6/site-packages/gitubuntu/git_repository.py", line 1527, in _add_missing_tree_dirs
    pygit2.GIT_FILEMODE_TREE, # attr
_pygit2.GitError: Failed to insert entry. Invalid name for a tree entry - .git

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/snap/git-ubuntu/328/bin/git-ubuntu", line 11, in <module>
    load_entry_point('gitubuntu==0.6.2', 'console_scripts', 'git-ubuntu')()
  File "/snap/git-ubuntu/328/lib/python3.6/site-packages/gitubuntu/__main__.py", line 243, in main
    sys.exit(args.func(args))
  File "/snap/git-ubuntu/328/lib/python3.6/site-packages/gitubuntu/importer.py", line 1520, in cli_main
    retry_backoffs=args.retry_backoffs,
  File "/snap/git-ubuntu/328/lib/python3.6/site-packages/gitubuntu/importer.py", line 334, in main
    allow_applied_failures=allow_applied_failures,
  File "/snap/git-ubuntu/328/lib/python3.6/site-packages/gitubuntu/importer.py", line 1412, in import_publishes
    raise GitUbuntuImportError(msg) from e
gitubuntu.importer.GitUbuntuImportError: Unable to import patches-unapplied 0.1.11-0.1 to debian