mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug
- Fixed bug where shadow files are not properly created when there is a missing .taskrc file. Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
parent
eb09f4da9a
commit
1c5068edb2
2 changed files with 11 additions and 7 deletions
|
@ -5,6 +5,8 @@
|
||||||
Bugs
|
Bugs
|
||||||
+ Bug fix release regarding #1104, which causes duplicate UUIDs during
|
+ Bug fix release regarding #1104, which causes duplicate UUIDs during
|
||||||
the merge command.
|
the merge command.
|
||||||
|
+ Fixed bug where shadow files are not properly created when there is a missing
|
||||||
|
.taskrc file (thanks to Pietro Cerutti).
|
||||||
|
|
||||||
------ old releases ------------------------------
|
------ old releases ------------------------------
|
||||||
|
|
||||||
|
|
|
@ -503,6 +503,7 @@ void Context::shadow ()
|
||||||
{
|
{
|
||||||
std::string file_name = config.get ("shadow.file");
|
std::string file_name = config.get ("shadow.file");
|
||||||
std::string command = config.get ("shadow.command");
|
std::string command = config.get ("shadow.command");
|
||||||
|
std::string rcfile = rc_file;
|
||||||
|
|
||||||
// A missing shadow file command uses the default command instead.
|
// A missing shadow file command uses the default command instead.
|
||||||
if (command == "")
|
if (command == "")
|
||||||
|
@ -538,6 +539,7 @@ void Context::shadow ()
|
||||||
" rc.detection:off" + // No need to determine terminal size
|
" rc.detection:off" + // No need to determine terminal size
|
||||||
" rc.color:off" + // Color off by default
|
" rc.color:off" + // Color off by default
|
||||||
" rc.gc:off " + // GC off, to reduce headaches
|
" rc.gc:off " + // GC off, to reduce headaches
|
||||||
|
" rc:" + rcfile + " " + // Use specified rc file
|
||||||
command + // User specified command
|
command + // User specified command
|
||||||
" >" + // Capture
|
" >" + // Capture
|
||||||
shadow_file._data; // User specified file
|
shadow_file._data; // User specified file
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue