Skip to content

Commit

Permalink
don't fail when git repo can't be parsed (#277)
Browse files Browse the repository at this point in the history
Signed-off-by: Benji Visser <[email protected]>
  • Loading branch information
noqcks authored Jan 23, 2024
1 parent 6487ca0 commit d609554
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/xeol/cli/options/project_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package options

import (
"fmt"
"log"
"net/url"
"regexp"
"strings"

git "github.com/go-git/go-git/v5"

"github.com/xeol-io/xeol/internal/log"
)

type Project struct {
Expand Down Expand Up @@ -131,7 +132,8 @@ func parseRawGitURL(rawurl string) (GitURL, error) {
func (f *URLFormatter) Format() string {
gURL, err := parseRawGitURL(f.URL)
if err != nil {
log.Fatal(err)
log.Debug(err)
return ""
}

return gURL.String()
Expand Down

0 comments on commit d609554

Please sign in to comment.