Skip to content

Commit e74d1a2

Browse files
committed
Fixed remote branch issue
1 parent 52ba961 commit e74d1a2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Commands/Clone.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public Clone(string ctx, string path, string url, string localName, string sshKe
1010
Args = "clone --progress --verbose ";
1111

1212
if(depth > 0)
13-
Args += $"--depth {depth} ";
13+
Args += $"--depth {depth} --no-single-branch ";
1414

1515
if (!string.IsNullOrEmpty(extraArgs))
1616
Args += $"{extraArgs} ";

src/Commands/Fetch.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public Fetch(string repo, string remote, bool noTags, bool force, int depth)
2121
Args += "--force ";
2222

2323
if(depth > 0)
24-
Args += $"--depth {depth} ";
24+
Args += $"--depth {depth} --no-single-branch ";
2525

2626
Args += remote;
2727
}
@@ -35,7 +35,7 @@ public Fetch(string repo, Models.Branch local, Models.Branch remote, int depth)
3535
Args = $"fetch --progress --verbose {remote.Remote} {remote.Name}:{local.Name}";
3636

3737
if(depth > 0)
38-
Args += $"--depth {depth} ";
38+
Args += $"--depth {depth} --no-single-branch ";
3939
}
4040

4141
public async Task<bool> RunAsync()

src/Commands/Pull.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public Pull(string repo, string remote, string branch, bool useRebase, int depth
1616
Args += "--rebase=true ";
1717

1818
if(depth > 0)
19-
Args += $"--depth {depth} ";
19+
Args += $"--depth {depth} --no-single-branch ";
2020

2121
Args += $"{remote} {branch}";
2222
}

0 commit comments

Comments
 (0)