shithub: hugo

Download patch

ref: f2ff77f3ac3d2f347cc81f7aabf15d5b55cf2e0c
parent: ebf3cef1624cbb56e6e6341e2b6f2539a625c370
author: Bjørn Erik Pedersen <[email protected]>
date: Fri Apr 8 17:11:44 EDT 2016

Make Hugo build without Mercurial

By creating a fork of the Bitbucket inflect repo. It hasn't changed since 2013,
so it must be considered pretty stable.

Fixes #2062

--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -31,7 +31,7 @@
 
 	"path"
 
-	"bitbucket.org/pkg/inflect"
+	"github.com/bep/inflect"
 	"github.com/spf13/afero"
 	"github.com/spf13/cast"
 	bp "github.com/spf13/hugo/bufferpool"
--- a/hugolib/site_test.go
+++ b/hugolib/site_test.go
@@ -23,7 +23,7 @@
 	"testing"
 	"time"
 
-	"bitbucket.org/pkg/inflect"
+	"github.com/bep/inflect"
 
 	"github.com/spf13/hugo/helpers"
 	"github.com/spf13/hugo/hugofs"
--- a/tpl/template_funcs.go
+++ b/tpl/template_funcs.go
@@ -24,8 +24,6 @@
 	"encoding/json"
 	"errors"
 	"fmt"
-	"github.com/spf13/afero"
-	"github.com/spf13/hugo/hugofs"
 	"html"
 	"html/template"
 	"math/rand"
@@ -39,7 +37,10 @@
 	"time"
 	"unicode/utf8"
 
-	"bitbucket.org/pkg/inflect"
+	"github.com/spf13/afero"
+	"github.com/spf13/hugo/hugofs"
+
+	"github.com/bep/inflect"
 
 	"github.com/spf13/cast"
 	"github.com/spf13/hugo/helpers"