Skip to content

Commit

Permalink
Merge branch 'mt/openindiana-scalar'
Browse files Browse the repository at this point in the history
Avoid removing the $(cwd) for portability.

* mt/openindiana-scalar:
  scalar: make enlistment delete to work on all POSIX platforms
  • Loading branch information
gitster committed Jun 6, 2024
2 parents df5c2c4 + 72b8c93 commit 9d8e7d2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions scalar.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,16 +361,13 @@ static char *remote_default_branch(const char *url)

static int delete_enlistment(struct strbuf *enlistment)
{
#ifdef WIN32
struct strbuf parent = STRBUF_INIT;
size_t offset;
char *path_sep;
#endif

if (unregister_dir())
return error(_("failed to unregister repository"));

#ifdef WIN32
/*
* Change the current directory to one outside of the enlistment so
* that we may delete everything underneath it.
Expand All @@ -385,7 +382,6 @@ static int delete_enlistment(struct strbuf *enlistment)
return res;
}
strbuf_release(&parent);
#endif

if (have_fsmonitor_support() && stop_fsmonitor_daemon())
return error(_("failed to stop the FSMonitor daemon"));
Expand Down

0 comments on commit 9d8e7d2

Please sign in to comment.