Git push error: (shallow update not allowed)

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

1.git remote add origin https://github.com/saurabh6790/testerp.git
2.git status
3.git add .
4.git commit -a -m"first commit"
5.git push origin develop

Thanks ,
Saurabh




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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/8e482554-e038-45c6-8805-a7851e38c7d9%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.

On Thu, Sep 11, 2014 at 4:43 PM, saurabh palande sa...@gmail.com wrote:

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

1.git remote add origin https://github.com/saurabh6790/testerp.git
2.git status
3.git add .
4.git commit -a -m"first commit"
5.git push origin develop

Thanks ,
Saurabh

What is your git version?

git --version

Hi Pratik,

git version 1.9.1

Regards,

On Thu, Sep 11, 2014 at 4:59 PM, Pratik Vyas <pd...@gmail.com> wrote:
On Thu, Sep 11, 2014 at 4:43 PM, saurabh palande <sa...@gmail.com> wrote:
> 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
>
> 1.git remote add origin https://github.com/saurabh6790/testerp.git
> 2.git status
> 3.git add .
> 4.git commit -a -m"first commit"
> 5.git push origin develop
>
> Thanks ,
> Saurabh
>

What is your git version?

`git --version `

--
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-forum+un...@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



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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAGCrPP-DQjPrMU4Wa9MXAHRS5-Az%3DWoGBeTh1LSLYFhyTg%2B1tw%40mail.gmail.com.

    For more options, visit https://groups.google.com/d/optout.

On Thu, Sep 11, 2014 at 5:00 PM, Saurabh Palande sa...@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,

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