mirror of https://github.com/restic/restic.git
Add possibility to set snapshot ID (used in test)
This commit is contained in:
parent
04a8ee80fb
commit
696c18e031
|
@ -146,6 +146,11 @@ func (sn Snapshot) ID() *ID {
|
|||
return sn.id
|
||||
}
|
||||
|
||||
// SetID sets the snapshot's ID.
|
||||
func (sn *Snapshot) SetID(id ID) {
|
||||
sn.id = &id
|
||||
}
|
||||
|
||||
func (sn *Snapshot) fillUserInfo() error {
|
||||
usr, err := user.Current()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue