how to get full commit log from a shallow clone?

只愿长相守 提交于 2019-12-11 05:06:41

问题


Is it possible to get the commit log history from a local copy which is a shallow clone (--depth = 1)

I am using shallow clone in my jenkins build job to get the code and build but the changelog is not complete because I am using shallow clone. Is there a way around that?


回答1:


No you cannot.

But if it helps, you can get a list of tags (if your jenkins job wants to check a tag) via git ls-remote.

Mort



来源:https://stackoverflow.com/questions/30158978/how-to-get-full-commit-log-from-a-shallow-clone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!