Skip to content

Worktree of bare repository is not a bare repository - #4628

Closed
csware wants to merge 1 commit into
libgit2:masterfrom
csware:bare-worktree
Closed

Worktree of bare repository is not a bare repository#4628
csware wants to merge 1 commit into
libgit2:masterfrom
csware:bare-worktree

Conversation

@csware

@csware csware commented Apr 18, 2018

Copy link
Copy Markdown
Contributor

Fix issue #4626.

@csware

csware commented Apr 18, 2018

Copy link
Copy Markdown
Contributor Author

Right now the test fails, here I'd appreciate some help (don't have time for debugging).

Comment thread tests/worktree/repository.c Outdated
cl_git_pass(git_worktree_add(&wt, repo, "worktree-new", path.ptr, NULL));

cl_git_pass(git_repository_open(&wtrepo, path.ptr));
cl_git_pass(git_repository__ensure_not_bare(&wtrepo, "something"));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're dereferencing into the stack — remove &.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. However, that wasn't all...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll take a closer look.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
@csware csware closed this Apr 19, 2018
@csware
csware deleted the bare-worktree branch April 19, 2018 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants