Support for single branch clone?

72 views
Skip to first unread message

David Balažic

unread,
May 26, 2023, 5:53:36 AM5/26/23
to tortoisegit-users
Hi!

I use TortoiseGit 2.14.0.0 (Hotfix 2.14.0.1; C:\Program Files\TortoiseGit\bin)
git version 2.40.1.windows.1 (C:\Program Files\Git\bin; C:\Program Files\Git\mingw64\; C:\Program Files\Git\etc\gitconfig)

I noticed than when cloning a repo, the .git folder is quite big.
If I clone it with JGit int Eclipse, it is much smaller (ten times).

If I use the same git command line as used by TGit in git bash but add the option --single-branch , then I get the desired small .git folder size.

Is there a way to add this option in TortoiseGit GUI?

As the branch option in the Git Clone dialog allows only one branch (unless I'm mistaken), maybe --single-branch can be used by default when the branch option is selected?

Regards,
David

Yue Lin Ho

unread,
Jun 11, 2023, 6:29:17 AM6/11/23
to tortoisegit-users
Hi,

Could you please open an issue?
:)

David Balažic 在 2023年5月26日 星期五下午5:53:36 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages