Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627416 - sys-apps/portage-9999: emerge --info explodes when sync-type=git is set but location does not have .git
Summary: sys-apps/portage-9999: emerge --info explodes when sync-type=git is set but l...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2017-08-09 15:32 UTC by Michał Górny
Modified: 2017-08-09 20:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-09 15:32:34 UTC
$ emerge --info
fatal: Not a git repository (or any parent up to mount point /var/db)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Traceback (most recent call last):
  File "/usr/lib64/python3.5/site-packages/portage/sync/modules/git/git.py", line 141, in retrieve_head
    cwd=portage._unicode_encode(self.repo.location)))
  File "/usr/lib64/python3.5/subprocess.py", line 316, in check_output
    **kwargs).stdout
  File "/usr/lib64/python3.5/subprocess.py", line 398, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/usr/bin/git', 'rev-list', '--max-count=1', 'HEAD']' returned non-zero exit status 128

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.5/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib64/python3.5/site-packages/_emerge/main.py", line 1241, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib64/python3.5/site-packages/_emerge/actions.py", line 3255, in run_action
    emerge_config.trees, emerge_config.opts, valid_atoms)
  File "/usr/lib64/python3.5/site-packages/_emerge/actions.py", line 1654, in action_info
    head_commit = sync.retrieve_head(options=options)
  File "/usr/lib64/python3.5/site-packages/portage/sync/modules/git/git.py", line 142, in retrieve_head
    except CalledProcessError:
NameError: name 'CalledProcessError' is not defined