In Openshift when using git, 'fatal: Not a git repository' is seen

Solution Unverified - Updated -

Issue

  • The following error is seen upon running any git command from within the gear directory:
fatal: Not a git repository (or any parent up to mount point /var/lib/openshift)

Environment

  • Openshift Online
  • Openshift Enterprise 1.1
  • Openshift Enterprise 1.2
  • Openshift Enterprise 2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content