Zimfw: [lean prompt] fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.

Created on 9 Dec 2016  路  6Comments  路  Source: zimfw/zimfw

Description

With ZIM enabled (with or without git module it seems), running git init gives this error

% git init
Initialized empty Git repository in /home/brott/Desktop/testgit/.git/
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.                                               
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

Without ZIM, it gives this

% git init
Initialized empty Git repository in /home/brott/Desktop/testgit2/.git/

Steps to reproduce

  1. Create new folder
  2. run git init inside it

Images or other information

Related to these?

bug wontfix

Most helpful comment

some brief experimentation show this is related to the lean prompt theme

All 6 comments

some brief experimentation show this is related to the lean prompt theme

@Plloi You're right, I just switched prompt and it had no issues.

I created a new issue over at https://github.com/miekg/lean/issues/12.

Yep, seems to be an upstream problem. Once the issue is fixed, I'll update the submodule and push to master.

Pushed, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wweir picture wweir  路  3Comments

lsunsi picture lsunsi  路  7Comments

gitthangbaby picture gitthangbaby  路  8Comments

linhvng picture linhvng  路  9Comments

singularitti picture singularitti  路  3Comments