how to get full commit log from a shallow clone?

2019-08-10 09:18发布

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条回答
祖国的老花朵
2楼-- · 2019-08-10 09:26

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

查看更多
登录 后发表回答