Skip to content

Conversation

@derrickstolee
Copy link
Contributor

These cleanups were discovered while working on #398:

  1. Update Watchman download to get newer version. (Link was broken by recent change in release process.)
  2. Use a better error when downloading the tip commit fails.
  3. Use multi-valued config for log.excludeDecoration since it will need multiple values.
  4. Do a better job interacting with GIT_OBJECT_DIRECTORY in GitProcess.
  5. Stop exiting on an unknown exception during GitMaintenanceStep.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
refs/scalar/hidden/* was the old ref space for the FetchStep.

The prefetch task in Git uses refs/prefetch/*

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
If we update GIT_OBJECT_DIRECTORY to a custom path and it doesn't match
the Unix-style path in the config, git-gvfs-helper complains and fails!
Make sure that we translate Windows-style paths to a Unix-style path.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
This is a throwback to the VFS for Git days where an unexpected
exception somehow justified killing the GVFS.Mount process. Today, this
only causes huge pain when trying to diagnose a unit test failure.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
The old link broke and we never noticed.

The new process downloads a 'watchman.zip' file which expands to
something like 'watchman\watchman-<tag>-windows\' and the *-expansion in
CMD is strange. This requires some careful renaming of directories to
place the results in a consistent place in order for the install script
to work.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>

if (gitObjectsDirectory != null)
{
gitObjectsDirectory = gitObjectsDirectory.Replace(Path.DirectorySeparatorChar, '/');
Copy link
Member

Choose a reason for hiding this comment

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

Is there not a helper method for this already?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, thanks! Paths.ConvertPathToGitFormat() and I found another place that can call it.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
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