how to get full commit log from a shallow clone?

2019-08-10 08:43发布

问题:

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