commit 384417cbfe7fa5168e4ed18dcfd233ddddf94ac4 from: Stefan Sperling date: Sat May 11 13:00:57 2019 UTC strip all trailing slashes from work tree path, not just first one commit - 0dd5271bd8f2a4f92ac3536fcc493eebc39b86e5 commit + 384417cbfe7fa5168e4ed18dcfd233ddddf94ac4 blob - d699079b48ca83e9cf1d07754bd3915623367023 blob + d478002f569d82038e88d43aad775c0b9ce16c9c --- got/got.c +++ got/got.c @@ -381,7 +381,7 @@ cmd_checkout(int argc, char *argv[]) } else usage_checkout(); - if (worktree_path[x = strlen(worktree_path) - 1] == '/') + while (worktree_path[x = strlen(worktree_path) - 1] == '/') worktree_path[x] = '\0'; error = got_repo_open(&repo, repo_path);