git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fetch unshallow fails to honor dry-run
@ 2015-10-25  9:16 Tim Janik
  2015-11-09 19:24 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Tim Janik @ 2015-10-25  9:16 UTC (permalink / raw)
  To: git

Hey all,

git fetch --dry-run modifies the repository if --unshallow is passed:

$ git --version
git version 2.1.4
$ git fetch --dry-run --unshallow
remote: Counting objects: 30603, done.
remote: Compressing objects: 100% (6843/6843), done.
remote: Total 30603 (delta 24564), reused 29164 (delta 23386)
Receiving objects: 100% (30603/30603), 5.42 MiB | 0 bytes/s, done.
Resolving deltas: 100% (24564/24564), completed with 317 local objects.
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 0), reused 6 (delta 0)
Unpacking objects: 100% (7/7), done.

I actually tried --dry-run --unshallow in order to find a way to detect in a script if the current git repository is shallow or not.
Better suggestions to find this out are very welcome.


-- 
Yours sincerely,
Tim Janik

https://testbit.eu/timj/
Free software author and speaker.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-14 18:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-25  9:16 fetch unshallow fails to honor dry-run Tim Janik
2015-11-09 19:24 ` Jeff King
2015-11-14 18:19   ` Duy Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).