mirror of https://github.com/perkeep/perkeep.git
pk-web: push commit to perkeep repo instead of camlistore one
We were still pushing to the camlistore repository. That worked, thanks to the redirect, but we might as well push directly to the correct one now. Change-Id: Ide4668ee587568cba928cb360289000aa106e955
This commit is contained in:
parent
05ec6c32ba
commit
28f7599a8f
|
@ -88,7 +88,7 @@ func initGithubSyncing() error {
|
||||||
// non-authenticated requests quota.
|
// non-authenticated requests quota.
|
||||||
func githubHEAD(gerritHEAD string) (string, error) {
|
func githubHEAD(gerritHEAD string) (string, error) {
|
||||||
const (
|
const (
|
||||||
headAPI = "https://api.github.com/repos/camlistore/camlistore/commits/HEAD"
|
headAPI = "https://api.github.com/repos/perkeep/perkeep/commits/HEAD"
|
||||||
mimeType = "application/vnd.github.VERSION.sha"
|
mimeType = "application/vnd.github.VERSION.sha"
|
||||||
)
|
)
|
||||||
req, err := http.NewRequest("GET", headAPI, nil)
|
req, err := http.NewRequest("GET", headAPI, nil)
|
||||||
|
@ -125,7 +125,7 @@ func syncToGithub(dir, gerritHEAD string) error {
|
||||||
hostSSHDir: "/root/.ssh",
|
hostSSHDir: "/root/.ssh",
|
||||||
}
|
}
|
||||||
if err := emailOnTimeout("git push_github", 5*time.Minute, func() error {
|
if err := emailOnTimeout("git push_github", 5*time.Minute, func() error {
|
||||||
cmd := execGit(dir, "push_github", mounts, "push", "git@github.com:camlistore/camlistore.git", "master:master")
|
cmd := execGit(dir, "push_github", mounts, "push", "git@github.com:perkeep/perkeep.git", "master:master")
|
||||||
out, err := cmd.CombinedOutput()
|
out, err := cmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("error running git push to github: %v\n%s", err, out)
|
return fmt.Errorf("error running git push to github: %v\n%s", err, out)
|
||||||
|
|
Loading…
Reference in New Issue