Skip to content

Commit

Permalink
Fix fly launch --from <ssh-url> for private repos (superfly#3427)
Browse files Browse the repository at this point in the history
allow cloning any URL, git will do the validation
  • Loading branch information
benwaffle authored Apr 5, 2024
1 parent 380b6ef commit c802e71
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/command/launch/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"encoding/json"
"errors"
"fmt"
"net/url"
"os"
"os/exec"
"time"
Expand Down Expand Up @@ -133,10 +132,6 @@ func setupFromTemplate(ctx context.Context) (context.Context, error) {
return ctx, nil
}

if _, err := url.Parse(from); err != nil {
return ctx, fmt.Errorf("invalid URL: `%s'. Expected https:// git repo", from)
}

entries, err := os.ReadDir(".")
if err != nil {
return ctx, fmt.Errorf("failed to read directory: %w", err)
Expand Down

0 comments on commit c802e71

Please sign in to comment.