Skip to content

Commit

Permalink
CR-16037-ref-branch (#662)
Browse files Browse the repository at this point in the history
* fix component creation on non-default branch

* bumped version to 0.1.24
  • Loading branch information
ATGardner authored Dec 27, 2022
1 parent b52e05e commit 6b30fa1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=v0.1.23
VERSION=v0.1.24

OUT_DIR=dist
YEAR?=$(shell date +"%Y")
Expand Down
4 changes: 2 additions & 2 deletions docs/releases/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cf version

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

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

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

# move the binary to your $PATH
mv ./cf-darwin-amd64 /usr/local/bin/cf
Expand Down
11 changes: 7 additions & 4 deletions pkg/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,13 @@ func (a *AppDef) CreateApp(ctx context.Context, f apkube.Factory, cloneOpts *apg
return util.Retry(ctx, &util.RetryOptions{
Func: func() error {
newCloneOpts := &apgit.CloneOptions{
FS: apfs.Create(memfs.New()),
Repo: cloneOpts.Repo,
Auth: cloneOpts.Auth,
Progress: cloneOpts.Progress,
FS: apfs.Create(memfs.New()),
Repo: cloneOpts.Repo,
Auth: cloneOpts.Auth,
Progress: cloneOpts.Progress,
CreateIfNotExist: false,
CloneForWrite: true,
UpsertBranch: false,
}
newCloneOpts.Parse()

Expand Down

0 comments on commit 6b30fa1

Please sign in to comment.