Git push error: (shallow update not allowed)

1,595 views
Skip to first unread message

saurabh palande

unread,
Sep 11, 2014, 7:13:07 AM9/11/14
to erpnext-dev...@googlegroups.com
Hi,

I am trying to push erpnext app to git. But repetitively I am getting error, http://pastebin.com/Kf48qs06

Steps I have followed,

cd frappe-bench/apps/erpnext

2.git status
3.git add .
4.git commit -a -m"first commit"
5.git push origin develop

Thanks ,
Saurabh


Pratik Vyas

unread,
Sep 11, 2014, 7:29:11 AM9/11/14
to erpnext-dev...@googlegroups.com
What is your git version?

`git --version `

Saurabh Palande

unread,
Sep 11, 2014, 7:30:50 AM9/11/14
to erpnext-dev...@googlegroups.com
Hi Pratik,

git version 1.9.1

Regards,


--
Note:

If you are posting an issue,

1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAG8U0EnWqWNDpj%2BH%3DECdEQM6Dgra0jvsEEK1%3DJZoy1Xnfe_9Ag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
S.S.Palande

Pratik Vyas

unread,
Sep 11, 2014, 7:47:10 AM9/11/14
to erpnext-dev...@googlegroups.com
On Thu, Sep 11, 2014 at 5:00 PM, Saurabh Palande <saura...@gmail.com> wrote:
> Hi Pratik,
>
> git version 1.9.1
>
> Regards,
>

bench does a shallow clone for git version > 1.9 as I read that
shallow clone push limitation was removed after this version.

Did you google the git error?
This is what I found,
http://stackoverflow.com/questions/11375070/pushing-to-github-after-a-shallow-clone

Try fetching more or revert to deep clone,

You can mv the repo to a safe place,
add "shallow_clone": "false" in frappe-bench/config.json
bench get-app erpnext
apply changes,
commit
and push
Reply all
Reply to author
Forward
0 new messages