You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running skaffold dev in directory after only git init but no git commit should work.
Actual behavior
skaffold dev fails if directory is git initialized but without any commit.
rvrignaud@cloudshell:~/awesomeapp (compute-demo-rvrignaud)$ git init
Initialized empty Git repository in /home/rvrignaud/awesomeapp/.git/
rvrignaud@cloudshell:~/awesomeapp (compute-demo-rvrignaud)$ skaffold dev
Starting build...
Building [eu.gcr.io/compute-demo-rvrignaud/awesomeapp]...
Sending build context to Docker daemon 3.072kB
Step 1/6 : FROM golang:1.10.1-alpine3.7 as builder
---> 52d894fca6d4
Step 2/6 : COPY main.go .
---> Using cache
---> 5b3ffcb7bc1f
Step 3/6 : RUN go build -o /app main.go
---> Using cache
---> a1d84c1ebe7c
Step 4/6 : FROM alpine:3.7
---> 3fd9065eaf02
Step 5/6 : CMD ./app
---> Using cache
---> ce226a815e25
Step 6/6 : COPY --from=builder /app .
---> Using cache
---> 49467bc49979
Successfully built 49467bc49979
Successfully tagged 65eded70661190241cccae3542c3b859:latest
Watching for changes...
ERRO[0000] dev: dev step: first run: exiting dev mode because the first build failed: generating tag: getting current revision: Running [git rev-parse HEAD]: stdout HEAD
, stderr: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
, err: exit status 128: exit status 128
Cleaning up...
Cleanup complete in 130.510766ms
1. cd skaffold_configured_directory
2. git init
3. skaffold dev
The text was updated successfully, but these errors were encountered:
rvrignaud
changed the title
Running skaffold dev in git repository without any commit fails
Running skaffold dev in git repository without any commit fails
Jul 4, 2018
Expected behavior
Running
skaffold dev
in directory after onlygit init
but nogit commit
should work.Actual behavior
skaffold dev
fails if directory is git initialized but without any commit.Information
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: