Commit 920a300f authored by Mustafa Gezen's avatar Mustafa Gezen
Browse files

stop tmpfs mode from pushing

parent 9a6c027d
......@@ -101,12 +101,16 @@ func mn(_ *cobra.Command, _ []string) {
}
if tmpFsMode {
tmpDir, err := ioutil.TempDir(os.TempDir(), "srpmproc-*")
tmpBaseDir, err := ioutil.TempDir(os.TempDir(), "srpmproc-*")
if err != nil {
log.Fatalf("could not create temp dir: %v", err)
}
log.Printf("using temp dir: %s", tmpDir)
log.Printf("using temp dir: %s", tmpBaseDir)
fsCreator = func() billy.Filesystem {
tmpDir, err := ioutil.TempDir(tmpBaseDir, "*")
if err != nil {
log.Fatalf("could not create temp dir: %v", err)
}
return osfs.New(tmpDir)
}
}
......
......@@ -271,6 +271,10 @@ func ProcessRPM(pd *data.ProcessData) {
}
}
if pd.TmpFsMode {
continue
}
var hashes []plumbing.Hash
var pushRefspecs []config.RefSpec
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment