Skip to content

Commit

Permalink
quickfix: regression on commit command (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilslice authored Mar 27, 2019
1 parent b539b07 commit d1b4021
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/protolock/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ func status(cfg *protolock.Config) {
os.Exit(1)
}

os.Exit(code)
if code != 0 {
os.Exit(code)
}
}

func saveToLockFile(cfg protolock.Config, r io.Reader) error {
Expand Down
5 changes: 5 additions & 0 deletions proto.lock
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,11 @@
"name": "age",
"type": "int32"
},
{
"id": 101,
"name": "newnew",
"type": "int32"
},
{
"id": 44,
"name": "msg",
Expand Down
1 change: 1 addition & 0 deletions testdata/test.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ message Channel {
string description = 3;
string foo = 4;
int32 age = 5;
int32 newnew = 101;

message A { int32 id = 1; }

Expand Down

0 comments on commit d1b4021

Please sign in to comment.