Git commit failed

150 views
Skip to first unread message

Kevin Wallace

unread,
Nov 9, 2012, 1:31:43 AM11/9/12
to andro...@googlegroups.com
I jus cloned a Git repository from github (https://github.com/kevjava/eulerrunner.git), changed a file, and when I tried to commit it, I got the following error message:

Git commit failed:  /storage/sdcard0/AppProjects/eulerrunner/res/values/strings.xml not in repository /storage/sdcard0/AppProjects/eulerrunner

Is this an issue I can work around, or a known bug?  I have successfully committed to Git repositories and pushed before, so I don't understand why this one is giving AIDE issues.  I can give more information if necessary.  I even tried deleting the repository and re-cloning, making the same change, and got the same error on tryng again.

Android 4.1 Jelly Bean, ASUS TF201 Transformer Prime

Thanks a lot,
Kevin

Kevin Wallace

unread,
Nov 10, 2012, 12:17:02 PM11/10/12
to andro...@googlegroups.com
All:

For reference and the quick aid of future Google searchers, I figured this problem out, and it was a bit of a *headdesk* moment for me.

For starters, I mistyped the error message, glossing over an important detail - the actual error message was:

Git commit failed:  /storage/sdcard0/AppProjects/eulerrunner/res/values/strings.xml not in repository /mnt/sdcard/AppProjects/eulerrunner

Of course, now the message is telling me exactly what is wrong.  When I cloned the Git repo, it seems Git resolved the symlink, and AIDE did not (or vice versa, I can't remember which way the symlink points).  When I did the commit, the paths didn't match.  So, it's not a bug, really, just a confusion with symlinked folders.  However, I figure someone else has to have run into this.

All I had to do was browse through the file manager from the symlinked /mnt/sdcard/AppProjects folder to /storage/sdcard0/AppProjects, and ran the commit from there.  It worked like a charm, and I'm hacking away on my tablet again.

Take care,
Kevin

--
--
AIDE - Android Java IDE mailing list
andro...@googlegroups.com
http://groups.google.com/group/android-ide?hl=en
 
 
 

Russell Wheeler

unread,
May 17, 2013, 4:07:16 AM5/17/13
to andro...@googlegroups.com
I'm so glad I looked on here for this,I was having the exact same issue. Solved it!!!

Thanks again

warwick...@gmail.com

unread,
Aug 20, 2013, 8:31:16 AM8/20/13
to andro...@googlegroups.com, ke...@windrosecareers.com
Thanks for the tip, you saved my bacon!

Wazza

hugo.va...@delitegroup.com

unread,
Nov 8, 2013, 6:17:45 AM11/8/13
to andro...@googlegroups.com
Kevin,

Can you explain in detail what you did (in the explorer ?).
I have the same problem but can't get it fixed.

Tnx. HugoZalm

Kevin Wallace

unread,
Nov 8, 2013, 6:25:03 AM11/8/13
to andro...@googlegroups.com
Hugo:

The trouble is that AIDE and git can't resolve symlinks. I was using a
path with symlinks at first, and so I had to figure out what those
symlinks resolved to, and go to the path they really referred to.

Browsing to the right path in the explorer was enough for me.

Good luck,
Kevin
> --
> --
> AIDE - Android Java IDE mailing list
> andro...@googlegroups.com
> http://groups.google.com/group/android-ide?hl=en
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "AIDE - Android Java IDE" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-ide/xnyVtKvoNZ8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> android-ide...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Android IDE

unread,
Nov 9, 2013, 1:31:28 PM11/9/13
to andro...@googlegroups.com
We will also fix this in the next version of AIDE.
> --- You received this message because you are subscribed to the Google
> Groups "AIDE - Android Java IDE" group.
> To unsubscribe from this group and stop receiving emails from it, send an
--
AIDE Team
Twitter - @AndroidIDE
G+ - http://bit.ly/HVbYkO
Reply all
Reply to author
Forward
0 new messages