Skip to content

Commit 6b30fa1

Browse files
authored
CR-16037-ref-branch (#662)
* fix component creation on non-default branch * bumped version to 0.1.24
1 parent b52e05e commit 6b30fa1

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v0.1.23
1+
VERSION=v0.1.24
22

33
OUT_DIR=dist
44
YEAR?=$(shell date +"%Y")

docs/releases/release_notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ cf version
2323

2424
```bash
2525
# download and extract the binary
26-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.23/cf-linux-amd64.tar.gz | tar zx
26+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.24/cf-linux-amd64.tar.gz | tar zx
2727

2828
# move the binary to your $PATH
2929
mv ./cf-linux-amd64 /usr/local/bin/cf
@@ -36,7 +36,7 @@ cf version
3636

3737
```bash
3838
# download and extract the binary
39-
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.23/cf-darwin-amd64.tar.gz | tar zx
39+
curl -L --output - https://github.com/codefresh-io/cli-v2/releases/download/v0.1.24/cf-darwin-amd64.tar.gz | tar zx
4040

4141
# move the binary to your $PATH
4242
mv ./cf-darwin-amd64 /usr/local/bin/cf

pkg/runtime/runtime.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,13 @@ func (a *AppDef) CreateApp(ctx context.Context, f apkube.Factory, cloneOpts *apg
339339
return util.Retry(ctx, &util.RetryOptions{
340340
Func: func() error {
341341
newCloneOpts := &apgit.CloneOptions{
342-
FS: apfs.Create(memfs.New()),
343-
Repo: cloneOpts.Repo,
344-
Auth: cloneOpts.Auth,
345-
Progress: cloneOpts.Progress,
342+
FS: apfs.Create(memfs.New()),
343+
Repo: cloneOpts.Repo,
344+
Auth: cloneOpts.Auth,
345+
Progress: cloneOpts.Progress,
346+
CreateIfNotExist: false,
347+
CloneForWrite: true,
348+
UpsertBranch: false,
346349
}
347350
newCloneOpts.Parse()
348351

0 commit comments

Comments
 (0)