Skip to content

Commit

Permalink
Merge branch 'master' of github.com:oniony/TMSU
Browse files Browse the repository at this point in the history
Conflicts:
	README.md
  • Loading branch information
oniony committed Feb 9, 2015
2 parents 8f334ef + 272c152 commit 944263b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ v0.5.0
shared or archived whilst preserving the tagging information. Existing
absolute paths can be converted by running a manual repair:

tmsu repair --mnaual / /
tmsu repair --manual / /

* Added 'config' subcommand to view and amend settings.
* The 'help' subcommand now wraps textual output to fit the terminal.
Expand Down
8 changes: 4 additions & 4 deletions src/tmsu/cli/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ func (parser *OptionParser) Parse(args ...string) (commandName string, options O
if len(parts) == 2 {
option.Argument = parts[1]
} else {
if len(args) < index+2 {
err = fmt.Errorf("missing argument for option '%v'", optionName)
return
}
if len(args) < index+2 {
err = fmt.Errorf("missing argument for option '%v'", optionName)
return
}

option.Argument = args[index+1]
index++
Expand Down
4 changes: 2 additions & 2 deletions src/tmsu/storage/database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ func OpenAt(path string) (*Database, error) {
if os.IsNotExist(err) {
log.Warnf("creating database at '%v'.", path)

dir := filepath.Dir(path)
os.Mkdir(dir, 0755)
dir := filepath.Dir(path)
os.Mkdir(dir, 0755)
} else {
log.Warnf("could not stat database: %v", err)
}
Expand Down

0 comments on commit 944263b

Please sign in to comment.