Skip to content

Commit 5f8a703

Browse files
committed
Doc and error message tweaks
Signed-off-by: Richard Nixon <[email protected]>
1 parent 9d95375 commit 5f8a703

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: README.md

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ go install github.com/trickyearlobe/bitsync@latest
1313

1414
## Using
1515

16+
The tool clones repos using SSH so you will need to generate and add SSH keys to your bitbucket account.
17+
18+
You will also need to add an `AppPass` to your bitbucket user so that bitsync can access the API
19+
1620
```bash
1721
export BBUSER=ebeneezer
1822
export BBAPPPASS=iurfhiuhfIUHFIEUiuehfeuiwF8734Jjhewjfew

Diff for: main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ func pullRepo(repoDir, mainBranch string) {
6767
fmt.Printf(" Pulling %v branch %v\n", repoDir, mainBranch)
6868
out, err := exec.Command("git", "-C", repoDir, "fetch", "origin", mainBranch).CombinedOutput()
6969
if err != nil {
70-
fmt.Printf(" Error: %v\n", string(out))
70+
fmt.Printf("%v\n", string(out))
7171
}
7272
}
7373

7474
func cloneRepo(repoDir, workspace, project, repo string) {
7575
fmt.Printf(" Cloning %v/%v/%v into %v\n", workspace, project, repo, repoDir)
7676
out, err := exec.Command("git", "clone", "[email protected]:"+workspace+"/"+repo, repoDir).CombinedOutput()
7777
if err != nil {
78-
fmt.Printf(" Error: %v\n", string(out))
78+
fmt.Printf("%v\n", string(out))
7979
}
8080
}
8181

0 commit comments

Comments
 (0)