You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For those of us working on multiple projects with different targets (public/open-source, work/proprietary) on the same system, $HOME/.gitconfig may not contain a value for user.email, or even user.name -- or they may not be the same values as those within the project using sbt-ghpages.
It would be nice if the temporary repo copied these values from the project repo's view of git config. I just don't know where the GitRunner commands should go, as I'm not too familiar with sbt-git yet.
Essentially the git commands would be:
valuserName= gr("config", "user.name")(projectRepo, s.log)
valuserEmail= gr("config", "user.email")(projectRepo, s.log)
// ... then after creating the temporary clone ...
gr("config", "user.name", userName)(updatedRepo, s.log)
gr("config", "user.email", userEmail)(updatedRepo, s.log)
This would work no matter whether user.name and user.email are set locally in the repo or globally in $HOME/.gitconfig; it simply fetches what the project sees as the fully resolved values, and applies them to the gh-pages clone.
The text was updated successfully, but these errors were encountered:
which will replace the initial commit with one having the correct values. As long as ~/.sbt/ghpages/default/PROJECTNAME remains as-is, it appears to retain those values on future push operations.
For those of us working on multiple projects with different targets (public/open-source, work/proprietary) on the same system, $HOME/.gitconfig may not contain a value for user.email, or even user.name -- or they may not be the same values as those within the project using sbt-ghpages.
It would be nice if the temporary repo copied these values from the project repo's view of
git config
. I just don't know where the GitRunner commands should go, as I'm not too familiar with sbt-git yet.Essentially the git commands would be:
This would work no matter whether user.name and user.email are set locally in the repo or globally in $HOME/.gitconfig; it simply fetches what the project sees as the fully resolved values, and applies them to the gh-pages clone.
The text was updated successfully, but these errors were encountered: