Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git worktree support #114

Merged
merged 1 commit into from
Sep 8, 2022
Merged

git worktree support #114

merged 1 commit into from
Sep 8, 2022

Conversation

nielshaandbaek
Copy link
Contributor

git worktree enables the user to have several copies of a repo in different directories and in different states in order to support working on multiple branches in parallel. Currently, this does not work well with dbt as it expects the workspace directory to match the name of the module.

The purpose of this PR is to modify the sync command such that it will create a suitably named symlink in DEPS/ named after the actual module name instead of merely being named after the top-level directory. The consequence is that dbt no longer requires that the workspace directory name matches that of the module.

Only tested with Git so far.

@nielshaandbaek nielshaandbaek merged commit f4a489f into master Sep 8, 2022
@nielshaandbaek nielshaandbaek deleted the nh-git-worktree-support branch September 8, 2022 17:39
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