Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to run a kernel module on a Nexus 7 emulator on Ubuntu.

I ran this command in the terminal: git clone https://android.googlesource.com/kernel/msm.git

Then I want to checkout this: git checkout remotes/origin/android-msm-flo-3.4-jb-mr2

Once I entered that line above I got this error:

HEAD is now at 9e52a21... 
qseecom: Fix issue with incomplete command exiting prematurely

I tried it with sudo, I tried adding things like -p, -3 at the end of the command, but nothing works. How do I fix this?

share|improve this question
1  
When there is an error in git, normally it is louder than that. Nevertheless, it is a fair question ;) –  J. C. Leitão Mar 27 at 18:38
    
For sudo you could use the -E option or env_keep to keep all the environment variables in place. –  trysis Mar 27 at 18:39
1  
Close-voter(s): This is about Ubuntu; the question is about git (which is running directly on Ubuntu), not Android. –  Eliah Kagan Mar 27 at 19:19

1 Answer 1

up vote 19 down vote accepted

That is a commit message, and not an error. Your command succeeded.

share|improve this answer
2  
thank you, was freakin out –  katrina Mar 27 at 7:03
2  
The whole thing is git telling you what's been checked out: HEAD is git's term for 'the currently selected version', 9e52a21 identifies the particular version, and the following line is the commit message describing the most recent change. –  deltab Mar 27 at 15:51
    
@deltab +1 But, I believe it was specifically the commit message (qseecom: Fix issue with incomplete command exiting prematurely) that looked like an error to OP. –  Elliott Frisch Mar 27 at 15:56
2  
That is a consistent problem with Git: the output gives a lot of information, but you need a thorough understanding of Git to figure out whether it succeeded or failed. This is a good example: after the checkout, it printed out the hash and the message of the latest commit. Of course, the hash is unintelligible and many commit-message contain error messages (since they are typically fixing errors). –  Malvolio Mar 27 at 18:30
1  
I like this idea. –  Andrew Apr 11 at 3:35

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.