Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to run this command:

$git submodule init
fatal: Not a git repository (or any of the parent directories): .git

Why am I getting this error. I am trying to set up ActionBarSherlock, but I can not get past the first command. I need ABS for building K-9 Mail. The instructions are here: https://github.com/k9mail/k-9/wiki/BuildingK9

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The error is accurate. You're getting it because you're running git submodule init outside a git repository. Based on the (admittedly sort of vague) directions under "Building with IntelliJ IDEA" on that link, try cloning k9's source from github and downloading ActionBarSherlock first.

share|improve this answer
    
Yes, I realized that latter. It was because I didn't clone the repository, I downloaded the ZIP archive. I'll accept your answer, as it was the problem. –  Josiah Nov 10 '12 at 13:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.