-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Build a minimized Nix with MinGW #8901
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
Changes from all commits
2248a3f
8433027
98691b4
b529d91
1063aa5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -151,11 +151,11 @@ struct GitRepoImpl : GitRepo, std::enable_shared_from_this<GitRepoImpl> | |
| { | ||
| initLibGit2(); | ||
|
|
||
| if (pathExists(path.native())) { | ||
| if (git_repository_open(Setter(repo), path.c_str())) | ||
| if (pathExists(path.string())) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not entirely clear on the difference between
which seems worrying.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the more we use |
||
| if (git_repository_open(Setter(repo), path.string().c_str())) | ||
| throw Error("opening Git repository '%s': %s", path, git_error_last()->message); | ||
| } else { | ||
| if (git_repository_init(Setter(repo), path.c_str(), bare)) | ||
| if (git_repository_init(Setter(repo), path.string().c_str(), bare)) | ||
| throw Error("creating Git repository '%s': %s", path, git_error_last()->message); | ||
| } | ||
| } | ||
|
|
@@ -216,7 +216,7 @@ struct GitRepoImpl : GitRepo, std::enable_shared_from_this<GitRepoImpl> | |
| std::vector<Submodule> parseSubmodules(const std::filesystem::path & configFile) | ||
| { | ||
| GitConfig config; | ||
| if (git_config_open_ondisk(Setter(config), configFile.c_str())) | ||
| if (git_config_open_ondisk(Setter(config), configFile.string().c_str())) | ||
| throw Error("parsing .gitmodules file: %s", git_error_last()->message); | ||
|
|
||
| ConfigIterator it; | ||
|
|
@@ -288,7 +288,7 @@ struct GitRepoImpl : GitRepo, std::enable_shared_from_this<GitRepoImpl> | |
|
|
||
| /* Get submodule info. */ | ||
| auto modulesFile = path / ".gitmodules"; | ||
| if (pathExists(modulesFile)) | ||
| if (pathExists(modulesFile.string())) | ||
| info.submodules = parseSubmodules(modulesFile); | ||
|
|
||
| return info; | ||
|
|
@@ -377,10 +377,10 @@ struct GitRepoImpl : GitRepo, std::enable_shared_from_this<GitRepoImpl> | |
| auto dir = this->path; | ||
| Strings gitArgs; | ||
| if (shallow) { | ||
| gitArgs = { "-C", dir, "fetch", "--quiet", "--force", "--depth", "1", "--", url, refspec }; | ||
| gitArgs = { "-C", dir.string(), "fetch", "--quiet", "--force", "--depth", "1", "--", url, refspec }; | ||
| } | ||
| else { | ||
| gitArgs = { "-C", dir, "fetch", "--quiet", "--force", "--", url, refspec }; | ||
| gitArgs = { "-C", dir.string(), "fetch", "--quiet", "--force", "--", url, refspec }; | ||
| } | ||
|
|
||
| runProgram(RunOptions { | ||
|
|
@@ -426,7 +426,7 @@ struct GitRepoImpl : GitRepo, std::enable_shared_from_this<GitRepoImpl> | |
| .args = { | ||
| "-c", | ||
| "gpg.ssh.allowedSignersFile=" + allowedSignersFile, | ||
| "-C", path, | ||
| "-C", path.string(), | ||
| "verify-commit", | ||
| rev.gitRev() | ||
| }, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.